diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2012-01-18 16:36:10 +0000 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2012-01-18 16:36:10 +0000 |
commit | 6bc3f8a378338246603e21704763c65cdc6ceb77 (patch) | |
tree | d39cbda1ed0cebb59fa96e9ce59accec25b9b6c0 /demo.c | |
parent | 3981920938ee0d1f9a720c7208f6248cbcf0ae35 (diff) | |
download | termo-6bc3f8a378338246603e21704763c65cdc6ceb77.tar.gz termo-6bc3f8a378338246603e21704763c65cdc6ceb77.tar.xz termo-6bc3f8a378338246603e21704763c65cdc6ceb77.zip |
\e string escape is not portable; use \033
Diffstat (limited to 'demo.c')
-rw-r--r-- | demo.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -45,7 +45,7 @@ int main(int argc, char *argv[]) TermKeyKey key; if(mouse) - printf("\e[?%dhMouse mode active\n", mouse); + printf("\033[?%dhMouse mode active\n", mouse); while((ret = termkey_waitkey(tk, &key)) != TERMKEY_RES_EOF) { if(ret == TERMKEY_RES_KEY) { @@ -67,7 +67,7 @@ int main(int argc, char *argv[]) } if(mouse) - printf("\e[?%dlMouse mode deactivated\n", mouse); + printf("\033[?%dlMouse mode deactivated\n", mouse); termkey_destroy(tk); } |