Added two more formatting options; CARETCTRL and ALTISMETA
This commit is contained in:
4
demo.c
4
demo.c
@@ -13,7 +13,9 @@ int main(int argc, char *argv[]) {
|
||||
if(key.type == TERMKEY_TYPE_UNICODE && !key.modifiers)
|
||||
printf("%s\n", key.utf8);
|
||||
else {
|
||||
termkey_snprint_key(tk, buffer, sizeof buffer, &key, 1);
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user