cmenu: implement scrollup using SU escape sequence
authorPierre-Alexandre Meyer <pierre@mouraf.org>
Wed, 19 Aug 2009 04:20:54 +0000 (21:20 -0700)
committerPierre-Alexandre Meyer <pierre@mouraf.org>
Tue, 1 Sep 2009 18:43:37 +0000 (11:43 -0700)
Use the ANSI SU - Scroll Up escape sequence to scrollup the window.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
com32/cmenu/libmenu/com32io.h

index 55d0189..1d27cfb 100644 (file)
@@ -95,7 +95,7 @@ void scrollupwindow(char top, char left, char bot, char right, char attr, char n
 
 static inline void scrollup(void)      //Scroll up display screen by one line
 {
-    scrollupwindow(0, 0, getnumrows(), getnumcols(), 0x07, 1);
+       printf(CSI "S");
 }
 
 void setvideomode(char mode);  // Set the video mode.