Adjustment to demo.c; just print the vim style format

This commit is contained in:
Paul LeoNerd Evans 2008-10-08 02:06:00 +01:00
parent c974e61a8d
commit a61b916c18
1 changed files with 1 additions and 3 deletions

4
demo.c
View File

@ -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 &&