git.y1.nz

mtm

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

commit 77060a88065f29fac8fec767f16c2d6563e24c4c
parent 4e638444b64138d05929b1e1b89bb480e841b4e6
Author: Rob King <jking@deadpixi.com>
Date:   Sat, 27 Jul 2019 23:05:00 -0500

Add HPR.

Diffstat:
Mmtm.c5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/mtm.c b/mtm.c @@ -238,6 +238,10 @@ HANDLER(hpa) /* HPA - Cursor Horizontal Absolute */ wmove(win, py, MIN(P1(0) - 1, mx - 1)); ENDHANDLER +HANDLER(hpr) /* HPR - Cursor Horizontal Relative */ + wmove(win, py, MIN(px + P1(0), mx - 1)); +ENDHANDLER + HANDLER(vpa) /* VPA - Cursor Vertical Absolute */ wmove(win, MIN(tos + bot - 1, MAX(tos + top, tos + P1(0) - 1)), x); ENDHANDLER @@ -624,6 +628,7 @@ setupevents(NODE *n) vtonevent(&n->vp, VTPARSER_CSI, L'`', hpa); vtonevent(&n->vp, VTPARSER_CSI, L'^', su); vtonevent(&n->vp, VTPARSER_CSI, L'@', ich); + vtonevent(&n->vp, VTPARSER_CSI, L'a', hpr); vtonevent(&n->vp, VTPARSER_CSI, L'b', rep); vtonevent(&n->vp, VTPARSER_CSI, L'c', decid); vtonevent(&n->vp, VTPARSER_CSI, L'd', vpa);

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