git.y1.nz

mtm

Ncurses-based terminal multiplexer
download: https://git.y1.nz/archives/mtm.tar.gz
Files | Log | Refs

commit 7fab69e59dec6e1fb724ee805543aa197223a341
parent 97c4d977f3ae091064d47ea80f0850897f2a4963
Author: Rob King <jking@deadpixi.com>
Date:   Thu, 27 Apr 2017 00:19:06 -0500

Name fix.

Diffstat:
Mmtm.c10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/mtm.c b/mtm.c @@ -1113,7 +1113,7 @@ getinput(NODE *n, fd_set *f) /* Recursively check all ptty's for input. */ } static const char * -sendarrow(const NODE *n, const char *k) +arrow(const NODE *n, const char *k) { const char *i = (n->vp == n->vp52)? "" : n->ckm? "O" : "["; static char buf[5] = {0}; @@ -1219,10 +1219,10 @@ handlechar(int r, int k) /* Handle a single input character. */ 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"))) - DO(false, KEY_CODE_YES, KEY_RIGHT, SEND(focused, sendarrow(focused, "C"))) - DO(false, KEY_CODE_YES, KEY_LEFT, SEND(focused, sendarrow(focused, "D"))) + DO(false, KEY_CODE_YES, KEY_UP, SEND(focused, arrow(focused, "A"))) + DO(false, KEY_CODE_YES, KEY_DOWN, SEND(focused, arrow(focused, "B"))) + DO(false, KEY_CODE_YES, KEY_RIGHT, SEND(focused, arrow(focused, "C"))) + DO(false, KEY_CODE_YES, KEY_LEFT, SEND(focused, arrow(focused, "D"))) DO(false, KEY_CODE_YES, KEY_HOME, SEND(focused, "\033[1~")) DO(false, KEY_CODE_YES, KEY_END, SEND(focused, "\033[4~")) DO(false, KEY_CODE_YES, KEY_PPAGE, SEND(focused, "\033[5~"))

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.