mtm | Ncurses-based terminal multiplexer |
| download: https://git.y1.nz/archives/mtm.tar.gz | |
| Files | Log | Refs |
commit dab9d9d0416332acffa293d3c54e3bcbe57fc033 parent bbaf4efc76453aa2c581a5c2e1d33f1c703708fc Author: Rob King <jking@deadpixi.com> Date: Wed, 12 Apr 2017 23:24:57 -0500 Added su and sd. Diffstat:
| M | mtm.c | 8 | ++++++++ |
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/mtm.c b/mtm.c @@ -247,6 +247,11 @@ HANDLER(bell) /* Terminal bell. */ beep(); ENDHANDLER +HANDLER(su) /* SU - Scroll Up/Down */ + int c = (w == L'T' || w == L'^')? -P1(0) : P1(0); + wscrl(win, c); +ENDHANDLER + HANDLER(cup) /* CUP - Cursor Position */ n->xenl = false; wmove(win, (n->decom? n->top : 0) + P1(0) - 1, P1(1) - 1); @@ -612,9 +617,12 @@ setupevents(NODE *n) /* Wire up escape sequences to functions. */ vtparser_onevent(n->vp, VTPARSER_CSI, L'L', idl); vtparser_onevent(n->vp, VTPARSER_CSI, L'M', idl); vtparser_onevent(n->vp, VTPARSER_CSI, L'P', dch); + vtparser_onevent(n->vp, VTPARSER_CSI, L'S', su); + vtparser_onevent(n->vp, VTPARSER_CSI, L'T', su); vtparser_onevent(n->vp, VTPARSER_CSI, L'Z', tab); vtparser_onevent(n->vp, VTPARSER_CSI, L'@', ich); vtparser_onevent(n->vp, VTPARSER_CSI, L'`', hpa); + vtparser_onevent(n->vp, VTPARSER_CSI, L'^', su); vtparser_onevent(n->vp, VTPARSER_CSI, L'a', hpr); vtparser_onevent(n->vp, VTPARSER_CSI, L'b', rep); vtparser_onevent(n->vp, VTPARSER_CSI, L'c', decid);
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.