Added two more formatting options; CARETCTRL and ALTISMETA

This commit is contained in:
Paul LeoNerd Evans
2008-10-06 22:22:09 +01:00
parent f54687c583
commit 5b24e42d90
3 changed files with 24 additions and 3 deletions

4
demo.c
View File

@@ -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);
}