git.y1.nz

mtm

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

commit f16e33861ddc6faa2702d7ce9e2f29f67c73f2a4
parent 72e7195caa495434e18b6b4f5443def694ae808f
Author: Rob King <jking@deadpixi.com>
Date:   Thu, 13 Apr 2017 00:08:49 -0500

Added ech.

Diffstat:
Mmtm.c8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/mtm.c b/mtm.c @@ -267,6 +267,13 @@ HANDLER(ich) /* ICH - Insert Character */ wins_nwstr(win, L" ", 1); ENDHANDLER +HANDLER(ech) /* ECH - Erase Character */ + chtype s[] = {COLOR_PAIR(0) | ' ', 0}; + for (int i = 0; i < P1(0); i++) + mvwaddchnstr(win, y, x + i, s, 1); + wmove(win, y, x); +ENDHANDLER + HANDLER(cuu) /* CUU - Cursor Up */ wmove(win, MAX(y - P1(0), n->top), x); ENDHANDLER @@ -615,6 +622,7 @@ 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'S', su); vtparser_onevent(n->vp, VTPARSER_CSI, L'T', su); + vtparser_onevent(n->vp, VTPARSER_CSI, L'X', ech); 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);

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