mtm | Ncurses-based terminal multiplexer |
| download: https://git.y1.nz/archives/mtm.tar.gz | |
| Files | Log | Refs |
commit e98bc2fbbe2086e8a28218f932848380553936f8 parent 7fab69e59dec6e1fb724ee805543aa197223a341 Author: Rob King <jking@deadpixi.com> Date: Thu, 27 Apr 2017 00:28:45 -0500 Add DESCA, not usable yet. Diffstat:
| M | mtm.c | 12 | ++++++++++++ |
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git a/mtm.c b/mtm.c @@ -703,6 +703,17 @@ HANDLER(flipirm) /* IRM - Toggle Insertion Replacement Mode */ n->insert = !n->insert; ENDHANDLER +HANDLER(decsca) /* DECSCA - Define protected area */ + if (iw != L'"') + return; + + switch (P0(0)){ + case 0: wattron(win, A_PROTECT); break; + case 1: wattroff(win, A_PROTECT); break; + case 2: wattron(win, A_PROTECT); break; + } +ENDHANDLER + static void setupevents(NODE *n) /* Wire up escape sequences to functions. */ { @@ -749,6 +760,7 @@ setupevents(NODE *n) /* Wire up escape sequences to functions. */ vtparser_onevent(n->vp100, VTPARSER_CSI, L'l', mode); vtparser_onevent(n->vp100, VTPARSER_CSI, L'm', sgr); vtparser_onevent(n->vp100, VTPARSER_CSI, L'n', dsr); + vtparser_onevent(n->vp100, VTPARSER_CSI, L'q', decsca); vtparser_onevent(n->vp100, VTPARSER_CSI, L'r', csr); vtparser_onevent(n->vp100, VTPARSER_CSI, L'x', decreqtparm); vtparser_onevent(n->vp100, VTPARSER_ESCAPE, L'0', scs);
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.