From b56f9f33fa1c9361f0f12b0179965602cb2363aa Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 4 Feb 2019 22:52:47 -0600 Subject: Reset screen wrap mode (broken by qemu -nographic output). --- toys/other/reset.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'toys/other/reset.c') diff --git a/toys/other/reset.c b/toys/other/reset.c index aa9b74ea..5fc59706 100644 --- a/toys/other/reset.c +++ b/toys/other/reset.c @@ -21,5 +21,6 @@ void reset_main(void) int fd = tty_fd(); // man 4 console_codes: reset terminal is ESC (no left bracket) c - xwrite(fd<0 ? 1 : fd, "\033c", 2); + // DEC private mode set enable wraparound sequence. + xwrite(fd<0 ? 1 : fd, "\033c\033[?7h", 2); } -- cgit v1.2.3