diff options
| author | H. Peter Anvin <hpa@zytor.com> | 2006-09-12 21:13:07 -0700 |
|---|---|---|
| committer | H. Peter Anvin <hpa@zytor.com> | 2006-09-12 21:13:07 -0700 |
| commit | 3ddcad33721f202a47247f3355754c29cd2876a8 (patch) | |
| tree | 2628659f90e6fb575e7d5c991bf63b665206b680 /com32/lib | |
| parent | 02fad14dc983930faeea0760c2d175441dad52cf (diff) | |
| download | syslinux-3.30-pre5.tar.gz | |
For SOH codes, always issue a leading zero resetsyslinux-3.30-pre5
Diffstat (limited to 'com32/lib')
| -rw-r--r-- | com32/lib/sys/ansi.c | 2 | ||||
| -rw-r--r-- | com32/lib/sys/xserial_write.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/com32/lib/sys/ansi.c b/com32/lib/sys/ansi.c index e47bf1e2..64e7f34f 100644 --- a/com32/lib/sys/ansi.c +++ b/com32/lib/sys/ansi.c @@ -408,6 +408,8 @@ void __ansi_putchar(const struct term_info *ti, uint8_t ch) p = console_color_table[st->parms[0]].ansi; st->state = st_esc; __ansi_putchar(ti, '['); + __ansi_putchar(ti, '0'); + __ansi_putchar(ti, ';'); while (*p) __ansi_putchar(ti, *p++); __ansi_putchar(ti, 'm'); diff --git a/com32/lib/sys/xserial_write.c b/com32/lib/sys/xserial_write.c index 6b3fbaf9..f119083a 100644 --- a/com32/lib/sys/xserial_write.c +++ b/com32/lib/sys/xserial_write.c @@ -98,6 +98,8 @@ ssize_t __xserial_write(struct file_info *fp, const void *buf, size_t count) if (ncolor < console_color_table_size) { emit('\033'); emit('['); + emit('0'); + emit(';'); for (p = console_color_table[ncolor].ansi; *p; p++) emit(*p); emit('m'); |
