mtm | Ncurses-based terminal multiplexer |
| download: https://git.y1.nz/archives/mtm.tar.gz | |
| Files | Log | Refs |
commit fcedeb5cc92e7a3bd1b3edeab4a0eaac63e39706 parent 9d519b2fb4a11b91ed825767d2d000df2e6b19cd Author: Rob King <jking@deadpixi.com> Date: Wed, 26 Apr 2017 22:54:29 -0500 Added key translations for kdch1 and kich1. Diffstat:
| M | mtm.c | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/mtm.c b/mtm.c @@ -1189,7 +1189,8 @@ handlechar(int r, int k) /* Handle a single input character. */ DO(cmd, KEY_CODE_YES, KEY_RESIZE, reshape(root, 0, 0, LINES, COLS)) DO(cmd, KEY_CODE_YES, KEY_MOUSE, while (getmouse(&e) != ERR) handlemouse(e)); DO(cmd, KEY_CODE_YES, KEY_BACKSPACE, SEND(focused, kbs? "\010" : "\177")) - DO(cmd, KEY_CODE_YES, KEY_DC, SEND(focused, "\177")) + DO(cmd, KEY_CODE_YES, KEY_DC, SEND(focused, "\033[3~")) + DO(cmd, KEY_CODE_YES, KEY_IC, SEND(focused, "\033[2~")) DO(false, OK, '\n', SEND(focused, focused->lnm? "\r\n" : "\r")) DO(false, KEY_CODE_YES, KEY_UP, SEND(focused, sendarrow(focused, "A"))) DO(false, KEY_CODE_YES, KEY_DOWN, SEND(focused, sendarrow(focused, "B")))
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.