dvtm

dynamic virtual terminal manager - with my changes
git clone https://pi.duncano.de/git/dvtm.git
Log | Files | Refs | README | LICENSE

commit 16fc4ea71e09b728c074168d17c84b58213fd5e6
parent c88334e15119daf3b8b85972794f29805477258a
Author: Marc Andre Tanner <mat@brain-dump.org>
Date:   Wed, 20 Nov 2013 18:08:26 +0100

Save + restore cursor position when redrawing status bar

Diffstat:
dvtm.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dvtm.c b/dvtm.c @@ -221,9 +221,10 @@ isarrange(void (*func)()) { static void drawbar() { wchar_t wbuf[sizeof bar.text]; - int w, maxwidth = screen.w - 2; + int x, y, w, maxwidth = screen.w - 2; if (bar.pos == BAR_OFF || !bar.text[0]) return; + getyx(stdscr, y, x); curs_set(0); attrset(BAR_ATTR); mvaddch(bar.y, 0, '['); @@ -242,6 +243,7 @@ drawbar() { } mvaddch(bar.y, screen.w - 1, ']'); attrset(NORMAL_ATTR); + move(y, x); if (sel) curs_set(vt_cursor(sel->term)); wnoutrefresh(stdscr);