summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-07-29 21:46:28 -0400
committerJune McEnroe <june@causal.agency>2018-07-29 21:46:28 -0400
commita5f09363b2ec24062fca18296db78a1b1258441a (patch)
tree2d235b8b0053cd61451747355775ddab0893b6e5 /bin
parentFix dtch cmsg size (diff)
downloadsrc-a5f09363b2ec24062fca18296db78a1b1258441a.tar.gz
src-a5f09363b2ec24062fca18296db78a1b1258441a.zip
Just print rs1 in dtch restoreTerm
Diffstat (limited to 'bin')
-rw-r--r--bin/dtch.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/bin/dtch.c b/bin/dtch.c
index 72f88e4d..4d9e527e 100644
--- a/bin/dtch.c
+++ b/bin/dtch.c
@@ -169,10 +169,7 @@ static int dtch(int argc, char *argv[]) {
 static struct termios saveTerm;
 static void restoreTerm(void) {
 	tcsetattr(STDIN_FILENO, TCSADRAIN, &saveTerm);
-	printf(
-		"\x1b[?1049l" // rmcup
-		"\x1b\x63\x1b[!p\x1b[?3;4l\x1b[4l\x1b>" // reset
-	);
+	printf("\x1B\x63"); // rs1
 }
 
 static int atch(int argc, char *argv[]) {