mirror of
https://github.com/troglobit/finit.git
synced 2026-11-03 13:28:27 +00: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:
1 parent
438d6b4e63
commit
7850378e15
2 files changed
+4
-1
No files matched your search
@@ -84,6 +84,9 @@ char *console(void)
|
|||||||
|
|
||||||
void console_init(void)
|
void console_init(void)
|
||||||
{
|
{
|
||||||
|
/* Enable line wrap, if disabled previously, e.g., qemu */
|
||||||
|
dprint(STDOUT_FILENO, "\033[?7h", 5);
|
||||||
|
|
||||||
log_init();
|
log_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -132,7 +132,7 @@ void stty(int fd, speed_t speed)
|
|||||||
dprint(fd, "\033[?25h", 6);
|
dprint(fd, "\033[?25h", 6);
|
||||||
|
|
||||||
/* Enable line wrap, if disabled previously */
|
/* Enable line wrap, if disabled previously */
|
||||||
dprint(fd, "\033[7h", 4);
|
dprint(fd, "\033[?7h", 5);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user