summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-06-05 18:18:50 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-06-05 18:18:50 -0700
commite30e0e4951c0c666a12d4a6fce14b75b91615b43 (patch)
tree1bdc8a5bf36c8fbccb8f6c08c1501dd6df9437c4
parentf8d8735f2cc92796d84e0af8d46132ad51a61e68 (diff)
downloadsyslinux-e30e0e4951c0c666a12d4a6fce14b75b91615b43.tar.gz
Not all terminals home the cursor on CSI 2 J
Not all terminals home the cursor on CSI 2 J, so send CSI 2 J CSI H.
-rw-r--r--com32/modules/printmsg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/modules/printmsg.c b/com32/modules/printmsg.c
index 80e52318..73682039 100644
--- a/com32/modules/printmsg.c
+++ b/com32/modules/printmsg.c
@@ -45,7 +45,7 @@ static int draw_message_file(const char *filename)
case st_init:
switch (ch) {
case '\f':
- fputs("\033[2J", stdout);
+ fputs("\033[2J\033[H", stdout);
break;
case 15: /* SI */
state = st_si_1;