diff options
Diffstat (limited to 'com32/lib/sys')
| -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'); |
