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

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
This commit is contained in:
Hiltjo Posthuma 2014-02-14 14:38:56 +01:00 committed by sin
parent f8f4a96cc1
commit b0576fc22b
2 changed files with 2 additions and 2 deletions

View File

@ -5,6 +5,6 @@
int
main(void)
{
printf("\e[2J\e[H");
printf("\x1b[2J\x1b[H");
return EXIT_SUCCESS;
}

View File

@ -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);