summary refs log tree commit diff
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
commitf4a7e473cddd8a12240efb2b7c890214def17060 (patch)
tree23c37e2785b185a6739518d7b1c6674dca6a4ea1
parentFix dtch cmsg size (diff)
downloadsrc-f4a7e473cddd8a12240efb2b7c890214def17060.tar.gz
src-f4a7e473cddd8a12240efb2b7c890214def17060.zip
Just print rs1 in dtch restoreTerm
-rw-r--r--bin/dtch.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/bin/dtch.c b/bin/dtch.c
index 6466c3be..ca0a612e 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[]) {
f='/cgit-pink/commit/ui-patch.c?h=1.4.0&id=2efb59ed0fa8eced79fa702bc47454d3406c3431&follow=1'>ui-patch: Flush stdout after outputting dataJohn Keeping 2014-06-28ui-log: ignore unhandled argumentsJohn Keeping 2014-06-28git: update for git 2.0Christian Hesse 2014-04-17remove trailing whitespaces from source filesChristian Hesse 2014-04-12git: update to 1.9.2Christian Hesse 2014-04-05Fix cgit_parse_url when a repo url is contained in another repo urlJulian Maurice 2014-03-20Makefile: use more reliable git tarball mirrorJason A. Donenfeld 2014-03-20git: update to 1.9.1Christian Hesse