mtm | Ncurses-based terminal multiplexer |
| download: https://git.y1.nz/archives/mtm.tar.gz | |
| Files | Log | Refs |
commit 7fcb96ceb40344a9b1980782872f706285cb4119 parent cb88c6f9700f2218e4c3730b241e7eb24619f704 Author: Rob King <jking@deadpixi.com> Date: Wed, 12 Apr 2017 22:24:30 -0500 Added vpa and hpa. Diffstat:
| M | mtm.c | 13 | ++++++++++++- |
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/mtm.c b/mtm.c @@ -479,13 +479,21 @@ HANDLER(sgr) /* SGR - Select Graphic Rendition */ wcolor_set(win, getpair(n->fg, n->bg), NULL); } +HANDLER(vpa) /* VPA - Cursor Vertical Absolute */ + wmove(win, P1(0) - 1, x); +ENDHANDLER + +HANDLER(hpa) /* HPA - Cursor Horizontal Absolute */ + wmove(win, y, P1(0) - 1); +ENDHANDLER + HANDLER(cbt) /* CBT - Cursor Backwards Tab */ for (int i = x - 1; i >= 0; i--) if (n->tabs[i]){ wmove(win, y, i); return; } wmove(win, y, 0); -} +ENDHANDLER HANDLER(ht) /* HT - Horizontal Tab */ for (int i = x + 1; i < n->w; i++) if (n->tabs[i]){ @@ -563,6 +571,7 @@ 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'G', hpa); vtparser_onevent(n->vp, VTPARSER_CSI, L'H', cup); vtparser_onevent(n->vp, VTPARSER_CSI, L'I', tab); vtparser_onevent(n->vp, VTPARSER_CSI, L'J', ed); @@ -572,7 +581,9 @@ setupevents(NODE *n) /* Wire up escape sequences to functions. */ vtparser_onevent(n->vp, VTPARSER_CSI, L'P', dch); 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'c', decid); + vtparser_onevent(n->vp, VTPARSER_CSI, L'd', vpa); vtparser_onevent(n->vp, VTPARSER_CSI, L'f', cup); vtparser_onevent(n->vp, VTPARSER_CSI, L'g', tbc); vtparser_onevent(n->vp, VTPARSER_CSI, L'h', mode);
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.