dvtm

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

commit 9b7bbc383ea508ea0efede6902c1c3b60011314b
parent 9e856d73940ebf42e2a30cb21c873d826fd7fd75
Author: Ross Mohn <rpmohn@waxandwane.org>
Date:   Fri, 17 Dec 2010 20:28:59 +0100

madtty: erease display with A_NORMAL character attributes

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

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

diff --git a/madtty.c b/madtty.c @@ -420,6 +420,10 @@ static void interpret_csi_ED(madtty_t *t, int param[], int pcount) { t_row_t *row, *start, *end; + save_attrs(t); + t->curattrs = A_NORMAL; + t->curfg = t->curbg = -1; + /* decide range */ if (pcount && param[0] == 2) { start = t->lines; @@ -439,6 +443,8 @@ static void interpret_csi_ED(madtty_t *t, int param[], int pcount) for (row = start; row < end; row++) { t_row_set(row, 0, t->cols, t); } + + restore_attrs(t); } /* interprets a 'move cursor' (CUP) escape sequence */