diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2014-10-14 00:24:47 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2014-10-14 00:24:47 +0200 |
commit | 77878abe90a3bec0055faf6bd6e4871cc6f1a474 (patch) | |
tree | 02d281593addcb5232540781c02c6a8454ae1494 /tests/39csi.c | |
parent | e98d9c0fd1a148adc844046d568d40de135fb366 (diff) | |
download | termo-77878abe90a3bec0055faf6bd6e4871cc6f1a474.tar.gz termo-77878abe90a3bec0055faf6bd6e4871cc6f1a474.tar.xz termo-77878abe90a3bec0055faf6bd6e4871cc6f1a474.zip |
Renaming continued
Diffstat (limited to 'tests/39csi.c')
-rw-r--r-- | tests/39csi.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/tests/39csi.c b/tests/39csi.c index 32a15b0..2278ff0 100644 --- a/tests/39csi.c +++ b/tests/39csi.c @@ -1,52 +1,52 @@ -#include "../termkey.h" +#include "../termo.h" #include "taplib.h" int main (int argc, char *argv[]) { - termkey_t *tk; - termkey_key_t key; + termo_t *tk; + termo_key_t key; long args[16]; size_t nargs = 16; unsigned long command; plan_tests (15); - tk = termkey_new_abstract ("vt100", NULL, 0); + tk = termo_new_abstract ("vt100", NULL, 0); - termkey_push_bytes (tk, "\e[5;25v", 7); + termo_push_bytes (tk, "\e[5;25v", 7); - is_int (termkey_getkey (tk, &key), TERMKEY_RES_KEY, + is_int (termo_getkey (tk, &key), TERMO_RES_KEY, "getkey yields RES_KEY for CSI v"); - is_int (key.type, TERMKEY_TYPE_UNKNOWN_CSI, "key.type for unknown CSI"); + is_int (key.type, TERMO_TYPE_UNKNOWN_CSI, "key.type for unknown CSI"); - is_int (termkey_interpret_csi (tk, &key, args, &nargs, &command), - TERMKEY_RES_KEY, "interpret_csi yields RES_KEY"); + is_int (termo_interpret_csi (tk, &key, args, &nargs, &command), + TERMO_RES_KEY, "interpret_csi yields RES_KEY"); is_int (nargs, 2, "nargs for unknown CSI"); is_int (args[0], 5, "args[0] for unknown CSI"); is_int (args[1], 25, "args[1] for unknown CSI"); is_int (command, 'v', "command for unknown CSI"); - termkey_push_bytes (tk, "\e[?w", 4); + termo_push_bytes (tk, "\e[?w", 4); - is_int (termkey_getkey (tk, &key), TERMKEY_RES_KEY, + is_int (termo_getkey (tk, &key), TERMO_RES_KEY, "getkey yields RES_KEY for CSI ? w"); - is_int (key.type, TERMKEY_TYPE_UNKNOWN_CSI, "key.type for unknown CSI"); - is_int (termkey_interpret_csi (tk, &key, args, &nargs, &command), - TERMKEY_RES_KEY, "interpret_csi yields RES_KEY"); + is_int (key.type, TERMO_TYPE_UNKNOWN_CSI, "key.type for unknown CSI"); + is_int (termo_interpret_csi (tk, &key, args, &nargs, &command), + TERMO_RES_KEY, "interpret_csi yields RES_KEY"); is_int (command, ('?' << 8) | 'w', "command for unknown CSI"); - termkey_push_bytes (tk, "\e[?$x", 5); + termo_push_bytes (tk, "\e[?$x", 5); - is_int (termkey_getkey (tk, &key), TERMKEY_RES_KEY, + is_int (termo_getkey (tk, &key), TERMO_RES_KEY, "getkey yields RES_KEY for CSI ? $x"); - is_int (key.type, TERMKEY_TYPE_UNKNOWN_CSI, "key.type for unknown CSI"); - is_int (termkey_interpret_csi (tk, &key, args, &nargs, &command), - TERMKEY_RES_KEY, "interpret_csi yields RES_KEY"); + is_int (key.type, TERMO_TYPE_UNKNOWN_CSI, "key.type for unknown CSI"); + is_int (termo_interpret_csi (tk, &key, args, &nargs, &command), + TERMO_RES_KEY, "interpret_csi yields RES_KEY"); is_int (command, ('$' << 16) | ('?' << 8) | 'x', "command for unknown CSI"); - termkey_destroy (tk); + termo_destroy (tk); return exit_status (); } |