projects
/
profile
/
ivi
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8d8735
)
Not all terminals home the cursor on CSI 2 J
author
H. Peter Anvin
<hpa@zytor.com>
Wed, 6 Jun 2007 01:18:50 +0000
(18:18 -0700)
committer
H. Peter Anvin
<hpa@zytor.com>
Wed, 6 Jun 2007 01:18:50 +0000
(18:18 -0700)
Not all terminals home the cursor on CSI 2 J, so send
CSI 2 J CSI H.
com32/modules/printmsg.c
patch
|
blob
|
history
diff --git
a/com32/modules/printmsg.c
b/com32/modules/printmsg.c
index
80e5231
..
7368203
100644
(file)
--- 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;