mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07:00
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:
@@ -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
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user