aboutsummaryrefslogtreecommitdiff
path: root/toys/other
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-02-04 22:52:47 -0600
committerRob Landley <rob@landley.net>2019-02-04 22:52:47 -0600
commitb56f9f33fa1c9361f0f12b0179965602cb2363aa (patch)
treecc625dbc0895ea8c6b42f9aa03efe19cd4444389 /toys/other
parentd5ad47d000635aa69f2016bf641958c89fba26cc (diff)
downloadtoybox-b56f9f33fa1c9361f0f12b0179965602cb2363aa.tar.gz
Reset screen wrap mode (broken by qemu -nographic output).
Diffstat (limited to 'toys/other')
-rw-r--r--toys/other/reset.c3
1 files changed, 2 insertions, 1 deletions
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);
}