=== modified file 'demo.c' --- demo.c 2008-02-23 19:37:27 +0000 +++ demo.c 2008-02-07 02:21:14 +0000 @@ -26,16 +26,16 @@ while((ret = termkey_waitkey(tk, &key)) != TERMKEY_RES_EOF) { if(key.flags & TERMKEY_KEYFLAG_SPECIAL) printf("Key %s%s%s%s (code %d)\n", - key.modifiers & TERMKEY_KEYMOD_SHIFT ? "Shift-" : "", - key.modifiers & TERMKEY_KEYMOD_ALT ? "Alt-" : "", - key.modifiers & TERMKEY_KEYMOD_CTRL ? "Ctrl-" : "", + key.modifiers & TERMKEY_KEYMOD_SHIFT ? "S-" : "", + key.modifiers & TERMKEY_KEYMOD_ALT ? "A-" : "", + key.modifiers & TERMKEY_KEYMOD_CTRL ? "C-" : "", termkey_describe_sym(tk, key.code), key.code); else printf("Key %s%s%s%s (U+%04X)\n", - key.modifiers & TERMKEY_KEYMOD_SHIFT ? "Shift-" : "", - key.modifiers & TERMKEY_KEYMOD_ALT ? "Alt-" : "", - key.modifiers & TERMKEY_KEYMOD_CTRL ? "Ctrl-" : "", + key.modifiers & TERMKEY_KEYMOD_SHIFT ? "S-" : "", + key.modifiers & TERMKEY_KEYMOD_ALT ? "A-" : "", + key.modifiers & TERMKEY_KEYMOD_CTRL ? "C-" : "", key.utf8, key.code);