git.y1.nz

mtm

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

commit 68250245722212e94fac6751e8bf7b77ddb057d2
parent e4ab5160f53de2053a49ef78a8121b5f039d8958
Author: Rob King <jking@deadpixi.com>
Date:   Sat, 27 Jul 2019 22:39:52 -0500

Added some more screenshots.

Diffstat:
MREADME.rst2++
Mmtm.c10++++++----
Avttest1.png0
Avttest2.png0
4 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/README.rst b/README.rst @@ -120,6 +120,8 @@ Screenshots .. image:: screenshot.png .. image:: screenshot2.png +.. image:: vttest1.png +.. image:: vttest2.png Compatibility ============= diff --git a/mtm.c b/mtm.c @@ -363,9 +363,10 @@ HANDLER(dsr) /* DSR - Device Status Report */ ENDHANDLER HANDLER(idl) /* IL or DL - Insert/Delete Line respecting the scroll region */ + /* insert/delete line has to respect the scrolling region */ int otop = 0, obot = 0, p1 = P1(0); wgetscrreg(win, &otop, &obot); - p1 = MIN(p1, obot - otop + 1); + p1 = MIN(p1, obot - otop + 1); /* work around a potential bug in ncurses */ wscrl(win, w == L'L'? -p1 : p1); wsetscrreg(win, otop, obot); ENDHANDLER @@ -730,8 +731,8 @@ fixcursor(void) /* Move the terminal cursor to the active view. */ curs_set(focused->s->off != focused->s->tos? 0 : focused->s->vis); getyx(focused->s->win, y, x); y = MIN(MAX(y, focused->s->tos), focused->s->tos + focused->h - 1); - wmove(focused->s->win, y, x); - refreshchildren(focused); + //wmove(focused->s->win, y, x); XXX + //refreshchildren(focused); wmove(focused->s->win, y, x); } } @@ -1111,8 +1112,9 @@ run(void) /* Run MTM. */ getinput(root, &sfds); refreshchildren(root); - doupdate(); + //doupdate(); XXX fixcursor(); + refreshchildren(focused); doupdate(); } } diff --git a/vttest1.png b/vttest1.png Binary files differ. diff --git a/vttest2.png b/vttest2.png Binary files differ.

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