dvtm

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

commit a38a771a3d2030108e37762c137cac8e69e5c857
parent 4ef840a3eb1364d9bd2087d7f2bdbe13399dfc18
Author: Marc Andre Tanner <mat@brain-dump.org>
Date:   Tue, 12 Feb 2013 13:47:20 +0100

vt: implement scroll up/down (SU/SD)

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

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

diff --git a/vt.c b/vt.c @@ -805,6 +805,12 @@ static void interpret_csi(Vt *t) case 'X': /* erase chars */ interpret_csi_ech(t, csiparam, param_count); break; + case 'S': /* SU: scroll up */ + vt_scroll(t, param_count ? -csiparam[0] : -1); + break; + case 'T': /* SD: scroll down */ + vt_scroll(t, param_count ? csiparam[0] : 1); + break; case 'Z': /* CBT: cursor backward tabulation */ puttab(t, param_count ? -csiparam[0] : -1); break;