Use the plus sign to connect shortcut keys consistently
This commit is contained in:
parent
c161ee7b5e
commit
0f4cb1955f
@ -82,7 +82,7 @@ Detailed list of changes
|
|||||||
- ssh kitten: A new option :code:`--symlink-strategy` to control how symlinks
|
- ssh kitten: A new option :code:`--symlink-strategy` to control how symlinks
|
||||||
are copied to the remote machine (:iss:`5249`)
|
are copied to the remote machine (:iss:`5249`)
|
||||||
|
|
||||||
- ssh kitten: Allow pressing Ctrl-C to abort ssh before the connection is
|
- ssh kitten: Allow pressing :kbd:`Ctrl+C` to abort ssh before the connection is
|
||||||
completed (:iss:`5271`)
|
completed (:iss:`5271`)
|
||||||
|
|
||||||
- Bash integration: Fix declare not creating global variables in .bashrc (:iss:`5254`)
|
- Bash integration: Fix declare not creating global variables in .bashrc (:iss:`5254`)
|
||||||
|
|||||||
@ -45,7 +45,7 @@ def read_keys() -> None:
|
|||||||
|
|
||||||
|
|
||||||
def legacy_main() -> None:
|
def legacy_main() -> None:
|
||||||
print('Press any keys - Ctrl-D will terminate this program', end='\r\n', flush=True)
|
print('Press any keys - Ctrl+D will terminate this program', end='\r\n', flush=True)
|
||||||
print(styled('UNIX', italic=True, fg='green'), styled('send_text', italic=True, fg='green'), sep='\t\t', end='\r\n')
|
print(styled('UNIX', italic=True, fg='green'), styled('send_text', italic=True, fg='green'), sep='\t\t', end='\r\n')
|
||||||
|
|
||||||
with raw_mode():
|
with raw_mode():
|
||||||
|
|||||||
@ -54,7 +54,7 @@ read_response(int fd, monotonic_t timeout, PyObject *ans) {
|
|||||||
switch(state) {
|
switch(state) {
|
||||||
case START:
|
case START:
|
||||||
if (ch == 0x1b) state = STARTING_ESC;
|
if (ch == 0x1b) state = STARTING_ESC;
|
||||||
if (ch == 0x03) { PyErr_SetString(PyExc_KeyboardInterrupt, "User pressed Ctrl-c"); return false; }
|
if (ch == 0x03) { PyErr_SetString(PyExc_KeyboardInterrupt, "User pressed Ctrl+C"); return false; }
|
||||||
break;
|
break;
|
||||||
#define CASE(curr, q, next) case curr: state = ch == q ? next : START; break;
|
#define CASE(curr, q, next) case curr: state = ch == q ? next : START; break;
|
||||||
CASE(STARTING_ESC, 'P', P);
|
CASE(STARTING_ESC, 'P', P);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user