Adjustment to demo.c; just print the vim style format
This commit is contained in:
parent
c974e61a8d
commit
a61b916c18
4
demo.c
4
demo.c
|
@ -10,9 +10,7 @@ int main(int argc, char *argv[]) {
|
||||||
termkey_key key;
|
termkey_key key;
|
||||||
|
|
||||||
while((ret = termkey_waitkey(tk, &key)) != TERMKEY_RES_EOF) {
|
while((ret = termkey_waitkey(tk, &key)) != TERMKEY_RES_EOF) {
|
||||||
termkey_snprint_key(tk, buffer, sizeof buffer, &key, 0);
|
termkey_snprint_key(tk, buffer, sizeof buffer, &key, TERMKEY_FORMAT_VIM);
|
||||||
printf("%s or ", buffer);
|
|
||||||
termkey_snprint_key(tk, buffer, sizeof buffer, &key, ~0);
|
|
||||||
printf("%s\n", buffer);
|
printf("%s\n", buffer);
|
||||||
|
|
||||||
if(key.type == TERMKEY_TYPE_UNICODE &&
|
if(key.type == TERMKEY_TYPE_UNICODE &&
|
||||||
|
|
Loading…
Reference in New Issue