=== modified file 'demo.c' --- demo.c 2008-10-08 01:06:00 +0000 +++ demo.c 2008-10-06 21:33:49 +0000 @@ -10,7 +10,9 @@ termkey_key key; while((ret = termkey_waitkey(tk, &key)) != TERMKEY_RES_EOF) { - termkey_snprint_key(tk, buffer, sizeof buffer, &key, TERMKEY_FORMAT_VIM); + termkey_snprint_key(tk, buffer, sizeof buffer, &key, 0); + printf("%s or ", buffer); + termkey_snprint_key(tk, buffer, sizeof buffer, &key, ~0); printf("%s\n", buffer); if(key.type == TERMKEY_TYPE_UNICODE &&