diff --git a/docs/changelog.rst b/docs/changelog.rst index fd3a64f1a..c2bbd6d22 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -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`) diff --git a/kittens/show_key/main.py b/kittens/show_key/main.py index 950bb9146..e85de89c7 100644 --- a/kittens/show_key/main.py +++ b/kittens/show_key/main.py @@ -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(): diff --git a/kitty/kittens.c b/kitty/kittens.c index 96618d5e8..29b4461f4 100644 --- a/kitty/kittens.c +++ b/kitty/kittens.c @@ -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);