dvtm

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

commit 80ed2d6f739a0c8ac46c5bf933bf896120884ef2
parent 9b7bbc383ea508ea0efede6902c1c3b60011314b
Author: Ross Mohn <rpmohn@waxandwane.org>
Date:   Fri, 17 Dec 2010 20:33:44 +0100

madtty: clear the screen after its creation

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 @@ -1075,6 +1075,12 @@ madtty_t *madtty_create(int rows, int cols, int scroll_buf_sz) } t->scroll_buf_ptr = t->scroll_buf_len = 0; t->scroll_amount = 0; + + /* clear the screen */ + t_row_set(t->curs_row, t->curs_col, t->cols - t->curs_col, t); + for (t_row_t *row = t->curs_row + 1; row < t->lines + t->rows; row++) + t_row_set(row, 0, t->cols, t); + return t; }