git.y1.nz

mtm

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

commit 5eb58e7d5c617de40ff38145f1c7212798d8d8ad
parent 5af9560fcdfd962ddec012d682317888dc51b80a
Author: Rob King <jking@deadpixi.com>
Date:   Wed, 12 Apr 2017 22:31:47 -0500

Added cpl and cnl.

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

diff --git a/mtm.c b/mtm.c @@ -479,6 +479,14 @@ HANDLER(sgr) /* SGR - Select Graphic Rendition */ wcolor_set(win, getpair(n->fg, n->bg), NULL); } +HANDLER(cpl) /* CPL - Cursor Previous Line */ + wmove(win, MAX(n->top, y - P1(0)), 0); +ENDHANDLER + +HANDLER(cnl) /* CNL - Cursor Next Line */ + wmove(win, MIN(n->bot - 1, y + P1(0)), 0); +ENDHANDLER + HANDLER(vpa) /* VPA - Cursor Vertical Absolute */ wmove(win, MIN(n->bot - 1, MAX(n->top, P1(0) - 1)), x); ENDHANDLER @@ -571,6 +579,8 @@ setupevents(NODE *n) /* Wire up escape sequences to functions. */ vtparser_onevent(n->vp, VTPARSER_CSI, L'B', cud); vtparser_onevent(n->vp, VTPARSER_CSI, L'C', cuf); vtparser_onevent(n->vp, VTPARSER_CSI, L'D', cub); + vtparser_onevent(n->vp, VTPARSER_CSI, L'E', cnl); + vtparser_onevent(n->vp, VTPARSER_CSI, L'F', cpl); vtparser_onevent(n->vp, VTPARSER_CSI, L'G', hpa); vtparser_onevent(n->vp, VTPARSER_CSI, L'H', cup); vtparser_onevent(n->vp, VTPARSER_CSI, L'I', tab);

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