diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2008-10-08 02:06:00 +0100 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2008-10-08 02:06:00 +0100 |
commit | a61b916c18f6997a76186609e0697bd893865412 (patch) | |
tree | 68f57b7c47152e713ce3ba140eb8723ad1f52d5a /demo.c | |
parent | c974e61a8dbf83b6691992f89778262d2780cc74 (diff) | |
download | termo-a61b916c18f6997a76186609e0697bd893865412.tar.gz termo-a61b916c18f6997a76186609e0697bd893865412.tar.xz termo-a61b916c18f6997a76186609e0697bd893865412.zip |
Adjustment to demo.c; just print the vim style format
Diffstat (limited to 'demo.c')
-rw-r--r-- | demo.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -10,9 +10,7 @@ int main(int argc, char *argv[]) { termkey_key key; while((ret = termkey_waitkey(tk, &key)) != TERMKEY_RES_EOF) { - termkey_snprint_key(tk, buffer, sizeof buffer, &key, 0); - printf("%s or ", buffer); - termkey_snprint_key(tk, buffer, sizeof buffer, &key, ~0); + termkey_snprint_key(tk, buffer, sizeof buffer, &key, TERMKEY_FORMAT_VIM); printf("%s\n", buffer); if(key.type == TERMKEY_TYPE_UNICODE && |