Use the plus sign to connect shortcut keys consistently

This commit is contained in:
pagedown 2022-08-18 17:05:00 +08:00
parent c161ee7b5e
commit 0f4cb1955f
No known key found for this signature in database
GPG Key ID: E921CF18AC8FF6EB
3 changed files with 3 additions and 3 deletions

View File

@ -82,7 +82,7 @@ Detailed list of changes
- ssh kitten: A new option :code:`--symlink-strategy` to control how symlinks
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`)
- Bash integration: Fix declare not creating global variables in .bashrc (:iss:`5254`)

View File

@ -45,7 +45,7 @@ def read_keys() -> 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')
with raw_mode():

View File

@ -54,7 +54,7 @@ read_response(int fd, monotonic_t timeout, PyObject *ans) {
switch(state) {
case START:
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;
#define CASE(curr, q, next) case curr: state = ch == q ? next : START; break;
CASE(STARTING_ESC, 'P', P);