ubase

suckless linux base utils
git clone git://git.2f30.org/ubase
Log | Files | Refs | README | LICENSE

commit b0576fc22bc5e63898a893e38490170cde220509
parent f8f4a96cc158b507c02bd4b937246205bd4e7879
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri, 14 Feb 2014 14:38:56 +0100

clear, watch: use 0x1b instead of non-standard \e

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>

Diffstat:
Mclear.c | 2+-
Mwatch.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/clear.c b/clear.c @@ -5,6 +5,6 @@ int main(void) { - printf("\e[2J\e[H"); + printf("\x1b[2J\x1b[H"); return EXIT_SUCCESS; } diff --git a/watch.c b/watch.c @@ -38,7 +38,7 @@ main(int argc, char *argv[]) } for (;;) { - printf("\e[2J\e[H"); + printf("\x1b[2J\x1b[H"); /* clear */ fflush(NULL); system(cmd); sleep(interval);