aboutsummaryrefslogtreecommitdiff
path: root/demo.c
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-10-06 22:22:09 +0100
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-10-06 22:22:09 +0100
commit5b24e42d90a57479c702b0e6b53271dd5188db70 (patch)
tree1256f67d246b48e50227a9409b2b56900771011a /demo.c
parentf54687c5837cacfa440a44c8549a1de0b3dd56ff (diff)
downloadtermo-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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/demo.c b/demo.c
index 94b029c..feac80c 100644
--- a/demo.c
+++ b/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);
}