Home | History | Annotate | Download | only in samples

Lines Matching defs:key

16  * Test the key parsing library
30 int key;
35 key = get_key(stdin, 0);
37 if (key == 0x03) {
40 } else if (key == '!')
43 if (key >= 0x20 && key < 0x100) {
44 putchar(key);
46 printf("[%s,%04x]", key_code_to_name(key), key);
53 int key;
58 key = getc(stdin);
60 if (key == 0x03) {
63 } else if (key == '!')
66 if (key != EOF)
67 printf("<%02x>", key);