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 /t/02getkey.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 't/02getkey.c')
-rw-r--r-- | t/02getkey.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/02getkey.c b/t/02getkey.c index 0c893c6..d5c26fd 100644 --- a/t/02getkey.c +++ b/t/02getkey.c @@ -41,7 +41,7 @@ int main(int argc, char *argv[]) is_int(key.code.number, 'a', "key.code.number after C-a"); is_int(key.modifiers, TERMKEY_KEYMOD_CTRL, "key.modifiers after C-a"); - termkey_push_bytes(tk, "\eOA", 3); + termkey_push_bytes(tk, "\033OA", 3); is_int(termkey_getkey(tk, &key), TERMKEY_RES_KEY, "getkey yields RES_KEY after Up"); @@ -49,7 +49,7 @@ int main(int argc, char *argv[]) is_int(key.code.sym, TERMKEY_SYM_UP, "key.code.sym after Up"); is_int(key.modifiers, 0, "key.modifiers after Up"); - is_int(termkey_push_bytes(tk, "\eO", 2), 2, "push_bytes returns 2"); + is_int(termkey_push_bytes(tk, "\033O", 2), 2, "push_bytes returns 2"); is_int(termkey_get_buffer_remaining(tk), 254, "buffer free 254 after partial write"); |