aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-10-08 02:06:00 +0100
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-10-08 02:06:00 +0100
commita61b916c18f6997a76186609e0697bd893865412 (patch)
tree68f57b7c47152e713ce3ba140eb8723ad1f52d5a
parentc974e61a8dbf83b6691992f89778262d2780cc74 (diff)
downloadtermo-a61b916c18f6997a76186609e0697bd893865412.tar.gz
termo-a61b916c18f6997a76186609e0697bd893865412.tar.xz
termo-a61b916c18f6997a76186609e0697bd893865412.zip
Adjustment to demo.c; just print the vim style format
-rw-r--r--demo.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/demo.c b/demo.c
index 6e55931..6e635ca 100644
--- a/demo.c
+++ b/demo.c
@@ -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 &&