aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/interestingtimes.c2
-rw-r--r--toys/other/clear.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/interestingtimes.c b/lib/interestingtimes.c
index bc8e0fea..636964aa 100644
--- a/lib/interestingtimes.c
+++ b/lib/interestingtimes.c
@@ -56,7 +56,7 @@ int terminal_probesize(unsigned *xx, unsigned *yy)
// Send probe: bookmark cursor position, jump to bottom right,
// query position, return cursor to bookmarked position.
- xprintf("\e[s\e[999C\e[999B\e[6n\e[u");
+ xprintf("\033[s\033[999C\033[999B\033[6n\033[u");
return 0;
}
diff --git a/toys/other/clear.c b/toys/other/clear.c
index 4061ea8d..842579f8 100644
--- a/toys/other/clear.c
+++ b/toys/other/clear.c
@@ -15,5 +15,5 @@ config CLEAR
void clear_main(void)
{
- xwrite(1, "\e[2J\e[H", 7);
+ printf("\033[2J\033[H");
}