git.y1.nz

mtm

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

commit 64b54acbfab5deea0e43660ccbfd53b94e28f016
parent bc3d3df09466a2ef9128dc1194fbc72263994c0b
Author: Rob King <jking@deadpixi.com>
Date:   Fri,  7 Jul 2017 23:56:58 -0500

Redraw status bar on resize.

Diffstat:
Mmtm.c7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/mtm.c b/mtm.c @@ -677,6 +677,10 @@ reshape(NODE *n, int y, int x, int h, int w) /* Reshape a node. */ reshapeview(n, y, x, h, w); else reshapechildren(n); + + if (n == root) + updatetitle(); + draw(n); wnoutrefresh(n->win); } @@ -748,7 +752,8 @@ handlechar(int r, int k) /* Handle a single input character. */ { static bool cmd = false; - #define DO(s, x, i, a) if (r == x && s == cmd && i == k) { a ; cmd = false; return true;} + #define DO(s, x, i, a) \ + if (r == x && s == cmd && i == k) { a ; cmd = false; return true;} DO(cmd, ERR, k, return false) DO(cmd, KEY_CODE_YES, KEY_RESIZE, reshape(root, 0, 0, LINES, COLS)) DO(cmd, KEY_CODE_YES, KEY_BACKSPACE, SEND(focused, "\177"))

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