git.y1.nz

mtm

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

commit 108e0d4e614e967a56b6cb720ba50a4084b3a484
parent e2e1b84f380e708561e32d0414c282ceae6d82eb
Author: Rob King <jking@deadpixi.com>
Date:   Tue, 11 Apr 2017 17:23:16 -0500

Add support for =/> keypad switching.

Diffstat:
Mmtm.c6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/mtm.c b/mtm.c @@ -404,6 +404,10 @@ HANDLER(csr) /* CSR - Change Scrolling Region */ } ENDHANDLER +HANDLER(numkp) /* Application/Numeric Keypad Mode */ + n->ckm = (w == L'='); +ENDHANDLER + HANDLER(mode) /* Set or Reset Mode */ bool set = (w == L'h'); for (int i = 0; i < argc; i++) switch (P0(i)){ @@ -571,6 +575,8 @@ setupevents(NODE *n) /* Wire up escape sequences to functions. */ vtparser_onevent(n->vp, VTPARSER_ESCAPE, L'M', ri); vtparser_onevent(n->vp, VTPARSER_ESCAPE, L'Z', decid); vtparser_onevent(n->vp, VTPARSER_ESCAPE, L'c', ris); + vtparser_onevent(n->vp, VTPARSER_ESCAPE, L'=', numkp); + vtparser_onevent(n->vp, VTPARSER_ESCAPE, L'>', numkp); vtparser_onevent(n->vp, VTPARSER_PRINT, 0, print); }

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