aboutsummaryrefslogtreecommitdiffstats
path: root/com32/include
diff options
context:
space:
mode:
authorPierre-Alexandre Meyer <pierre@mouraf.org>2009-09-05 22:59:00 -0700
committerPierre-Alexandre Meyer <pierre@mouraf.org>2009-09-05 22:59:00 -0700
commit3e9ec4717294880748f41d973db4b807471bca66 (patch)
treece33d273b1674401561ff9c87b94a1038e326c09 /com32/include
parent3523370478ffae39eac099ecd217c42122e7443d (diff)
downloadsyslinux-3e9ec4717294880748f41d973db4b807471bca66.tar.gz
syslinux-3e9ec4717294880748f41d973db4b807471bca66.tar.xz
syslinux-3e9ec4717294880748f41d973db4b807471bca66.zip
libansi: add function to scroll up multiple lines
Impact: API change. scrollup() has been renamed scrollup_once(). Use scrollup(nb_of_lines) to specify the number of lines the window needs to scroll. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Diffstat (limited to 'com32/include')
-rw-r--r--com32/include/libansi.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/com32/include/libansi.h b/com32/include/libansi.h
index c201595d..f51c9a06 100644
--- a/com32/include/libansi.h
+++ b/com32/include/libansi.h
@@ -94,8 +94,14 @@ static inline void cursoron(void)
display_cursor(true);
}
+static inline void scrollup(int times)
+{
+ if (times > 0)
+ printf(CSI "%dS", times);
+}
+
/* Scroll up display screen by one line */
-static inline void scrollup(void)
+static inline void scrollup_once(void)
{
printf(CSI "S");
}