Initial attempt to make use of left and right margins if the terminal

supports them (that is, if it advertises itself as a VT420 - probably
just xterm). These are the vertical equivalent of the scroll region and
allow much faster scrolling of panes that do not take up the full width
of the terminal.
This commit is contained in:
nicm
2016-11-15 14:02:32 +00:00
parent 9fe43d6acb
commit 0ace779cde
4 changed files with 187 additions and 11 deletions

View File

@@ -1004,6 +1004,7 @@ server_client_reset_state(struct client *c)
return;
tty_region(&c->tty, 0, c->tty.sy - 1);
tty_margin(&c->tty, 0, c->tty.sx - 1);
status = options_get_number(oo, "status");
if (!window_pane_visible(wp) || wp->yoff + s->cy >= c->tty.sy - status)