mtm | Ncurses-based terminal multiplexer |
| download: https://git.y1.nz/archives/mtm.tar.gz | |
| Files | Log | Refs |
commit 3e2004572ff10b1767cbc98b0b93540f5369540a parent 9122269e7273d2f822923eb313d51f72fc902aa0 Author: Rob King <jking@deadpixi.com> Date: Fri, 23 Jun 2017 17:59:52 -0500 Localized cmd. Diffstat:
| M | mtm.c | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/mtm.c b/mtm.c @@ -66,7 +66,6 @@ struct COLORTABLE{ /*** GLOBALS AND PROTOTYPES */ static COLORTABLE ctable[MAXCTABLE]; static NODE *root, *focused; -static bool cmd; static int commandkey = CTL(COMMAND_KEY), nfds = 1; /* stdin */ static fd_set fds; static char iobuf[BUFSIZ + 1]; @@ -746,6 +745,8 @@ getinput(NODE *n, fd_set *f) /* Recursively check all ptty's for input. */ static bool handlechar(int r, int k) /* Handle a single input character. */ { + static bool cmd = false; + #define DO(s, x, i, a) if (r == x && s == cmd && i == k) { a ; cmd = false; return true;} DO(cmd, ERR, k, return false) DO(cmd, KEY_CODE_YES, KEY_RESIZE, reshape(root, 0, 0, LINES, COLS))
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.