mtm | Ncurses-based terminal multiplexer |
| download: https://git.y1.nz/archives/mtm.tar.gz | |
| Files | Log | Refs |
commit e32a07c2c04f098a624e1ebadf6e4d2f5c4ebea4 parent bae95d4067e2d8c7ec4b685500e943dfd08b8a4d Author: Rob King <jking@deadpixi.com> Date: Sun, 19 Feb 2017 20:50:53 -0600 Do bulk screen updates. Diffstat:
| M | mtm.c | 10 | +++++----- |
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/mtm.c b/mtm.c @@ -143,7 +143,7 @@ callback(tmt_msg_t m, struct TMT *v, const void *r, void *p) { switch (m){ case TMT_MSG_UPDATE: drawview((NODE *)p, false); break; - case TMT_MSG_MOVED: fixcursor(); break; + case TMT_MSG_MOVED: /* ignored */ break; case TMT_MSG_BELL: beep(); break; } } @@ -200,7 +200,7 @@ focus(NODE *n) return; else if (n->t == VIEW){ focused = n; - wrefresh(n->win); + wnoutrefresh(n->win); } else focus(n->c1? n->c1 : n->c2); } @@ -323,8 +323,8 @@ drawview(NODE *n, bool force) mvwadd_wch(n->win, r, c, buildcchar(s->lines[r]->chars[c])); } tmt_clean(n->vt); - wrefresh(n->win); - refresh(); + wnoutrefresh(n->win); + wnoutrefresh(stdscr); } static void @@ -436,7 +436,7 @@ run(void) while (handlechar(wgetch(focused->win))) ; getinput(root, &sfds); - refresh(); + doupdate(); fixcursor(); } }
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.