Scope-eye.net Git Repository
/
liskon_frotz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2717adb
)
If ^C isn't used for SIGINT, clear line instead
author
Ivy Foster
<iff@escondida.tk>
Fri, 16 Feb 2018 01:31:15 +0000
(19:31 -0600)
committer
Ivy Foster
<iff@escondida.tk>
Fri, 16 Feb 2018 01:31:15 +0000
(19:31 -0600)
src/curses/ux_input.c
patch
|
blob
|
history
diff --git
a/src/curses/ux_input.c
b/src/curses/ux_input.c
index eb6bdefefa99810f4337dc1257fa0c54079e7b4a..799671e9e5a6a39073a3f7e4aa86e16b29604054 100644
(file)
--- a/
src/curses/ux_input.c
+++ b/
src/curses/ux_input.c
@@
-241,6
+241,8
@@
static int unix_read_char(int extkeys)
/* these are the emacs-editing characters */
case MOD_CTRL ^ 'B': return ZC_ARROW_LEFT;
+ /* use ^C to clear line anywhere it doesn't send SIGINT */
+ case MOD_CTRL ^ 'C': return ZC_ESCAPE;
case MOD_CTRL ^ 'F': return ZC_ARROW_RIGHT;
case MOD_CTRL ^ 'P': return ZC_ARROW_UP;
case MOD_CTRL ^ 'N': return ZC_ARROW_DOWN;