From: John Hodge Date: Sun, 18 May 2014 06:10:22 +0000 (+0800) Subject: Kernel/VTerm - Fix scroll in alt buffer X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=2a17e7ae7dab0ac8ba8c434bc3b409f20d378e46;p=tpg%2Facess2.git Kernel/VTerm - Fix scroll in alt buffer --- diff --git a/KernelLand/Kernel/drv/vterm_termbuf.c b/KernelLand/Kernel/drv/vterm_termbuf.c index 50787228..fed577a9 100644 --- a/KernelLand/Kernel/drv/vterm_termbuf.c +++ b/KernelLand/Kernel/drv/vterm_termbuf.c @@ -176,6 +176,8 @@ void VT_int_PutChar(tVTerm *Term, Uint32 Ch) HEAP_VALIDATE(); + // TODO: Schedule a delayed screen update + //LEAVE('-'); } diff --git a/KernelLand/Kernel/drv/vterm_vt100.c b/KernelLand/Kernel/drv/vterm_vt100.c index 4428b64e..1399d7ba 100644 --- a/KernelLand/Kernel/drv/vterm_vt100.c +++ b/KernelLand/Kernel/drv/vterm_vt100.c @@ -5,7 +5,7 @@ * drv/vterm_vt100.c * - Virtual Terminal - VT100 (Kinda) Emulation */ -#define DEBUG 0 +#define DEBUG 1 #include "vterm.h" #define sTerminal sVTerm @@ -44,7 +44,7 @@ void Display_ScrollDown(tTerminal *Term, int CountDown) LOG("(%i)", CountDown); VT_int_UpdateScreen(Term, 0); if( Term->Flags & VT_FLAG_ALTBUF ) - VT_int_ScrollText(Term, CountDown); + VT_int_ScrollText(Term, -CountDown); else { if(Term->ViewTopRow + CountDown < 0)