Fix issue with messed up linewrap in qemu-system-x86_64

Apparently the qemu-system-x86_64 in -nographics mode does all sorts of
crazy things to the terminal.  Most annoying, it disables linewrap.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-05-15 16:05:59 +02:00
parent 438d6b4e63
commit 7850378e15
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -84,6 +84,9 @@ char *console(void)
void console_init(void)
{
/* Enable line wrap, if disabled previously, e.g., qemu */
dprint(STDOUT_FILENO, "\033[?7h", 5);
log_init();
}
+1 -1
View File
@@ -132,7 +132,7 @@ void stty(int fd, speed_t speed)
dprint(fd, "\033[?25h", 6);
/* Enable line wrap, if disabled previously */
dprint(fd, "\033[7h", 4);
dprint(fd, "\033[?7h", 5);
}
/**