diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2008-10-06 22:22:09 +0100 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2008-10-06 22:22:09 +0100 |
commit | 5b24e42d90a57479c702b0e6b53271dd5188db70 (patch) | |
tree | 1256f67d246b48e50227a9409b2b56900771011a /demo.c | |
parent | f54687c5837cacfa440a44c8549a1de0b3dd56ff (diff) | |
download | termo-5b24e42d90a57479c702b0e6b53271dd5188db70.tar.gz termo-5b24e42d90a57479c702b0e6b53271dd5188db70.tar.xz termo-5b24e42d90a57479c702b0e6b53271dd5188db70.zip |
Added two more formatting options; CARETCTRL and ALTISMETA
Diffstat (limited to 'demo.c')
-rw-r--r-- | demo.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); } |