aboutsummaryrefslogtreecommitdiff
path: root/demo.c
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2012-01-18 16:36:10 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2012-01-18 16:36:10 +0000
commit6bc3f8a378338246603e21704763c65cdc6ceb77 (patch)
treed39cbda1ed0cebb59fa96e9ce59accec25b9b6c0 /demo.c
parent3981920938ee0d1f9a720c7208f6248cbcf0ae35 (diff)
downloadtermo-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/demo.c b/demo.c
index 1b148b5..ed34d31 100644
--- a/demo.c
+++ b/demo.c
@@ -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);
}