clear, watch: use 0x1b instead of non-standard \e
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
This commit is contained in:
parent
f8f4a96cc1
commit
b0576fc22b
2
clear.c
2
clear.c
@ -5,6 +5,6 @@
|
|||||||
int
|
int
|
||||||
main(void)
|
main(void)
|
||||||
{
|
{
|
||||||
printf("\e[2J\e[H");
|
printf("\x1b[2J\x1b[H");
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user