Kernel/VTerm - Fix scroll in alt buffer
authorJohn Hodge <[email protected]>
Sun, 18 May 2014 06:10:22 +0000 (14:10 +0800)
committerJohn Hodge <[email protected]>
Sun, 18 May 2014 06:10:22 +0000 (14:10 +0800)
KernelLand/Kernel/drv/vterm_termbuf.c
KernelLand/Kernel/drv/vterm_vt100.c

index 5078722..fed577a 100644 (file)
@@ -176,6 +176,8 @@ void VT_int_PutChar(tVTerm *Term, Uint32 Ch)
 
        HEAP_VALIDATE();
        
+       // TODO: Schedule a delayed screen update
+       
        //LEAVE('-');
 }
 
index 4428b64..1399d7b 100644 (file)
@@ -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)

UCC git Repository :: git.ucc.asn.au