dvtm

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

commit 9d24218efce0b89351bf8be7e185b3afde97e69e
parent af18759c296b06f475db9a0929922cef4798f83c
Author: Marc Andre Tanner <mat@brain-dump.org>
Date:   Fri,  7 Jan 2011 15:08:00 +0100

madtty: fix RI sequence handling

Perform a reverse scroll if the cursor is already at the top margin.

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

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

diff --git a/madtty.c b/madtty.c @@ -746,6 +746,10 @@ static void interpret_esc_RI(madtty_t *t) { if (t->curs_row > t->lines) t->curs_row--; + else { + t_row_roll(t->scroll_top, t->scroll_bot, -1); + t_row_set(t->scroll_top, 0, t->cols, t); + } } /* Interpret a 'next line' (NEL) sequence */