dvtm

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

commit 4ef840a3eb1364d9bd2087d7f2bdbe13399dfc18
parent 6be3fcdae77eefc7f8c87f3ebfb1be2fce334480
Author: Marc Andre Tanner <mat@brain-dump.org>
Date:   Tue, 12 Feb 2013 13:36:43 +0100

vt: save/restore terminal mode upon DECSC/DECRC

TODO: determine what exactly needs to be saved on a per
      screen or per buffer basis and convert the bitfield
      mess to an unsigned int with flags.

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>

Diffstat:
vt.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/vt.c b/vt.c @@ -130,6 +130,7 @@ struct Vt { unsigned relposmode:1; unsigned mousetrack:1; unsigned graphmode:1; + unsigned savgraphmode:1; bool charsets[2]; char copymode_searching; /* copymode */ @@ -286,6 +287,7 @@ static void save_attrs(Vt *t) b->savattrs = b->curattrs; b->savfg = b->curfg; b->savbg = b->curbg; + t->savgraphmode = t->graphmode; } static void restore_attrs(Vt *t) @@ -294,6 +296,7 @@ static void restore_attrs(Vt *t) b->curattrs = b->savattrs; b->curfg = b->savfg; b->curbg = b->savbg; + t->graphmode = t->savgraphmode; } static void fill_scroll_buf(Buffer *t, int s)