Home
last modified time | relevance | path

Searched refs:key (Results 1 – 2 of 2) sorted by relevance

/DragonOS-0.1.2/user/libs/libKeyboard/
Dkeyboard.c301 int key = 0; in keyboard_analyze_keycode() local
304 key = PAUSE_BREAK; in keyboard_analyze_keycode()
309 key = 0; in keyboard_analyze_keycode()
323 key = PRINT_SCREEN; in keyboard_analyze_keycode()
331 key = PRINT_SCREEN; in keyboard_analyze_keycode()
337 key = OTHER_KEY; in keyboard_analyze_keycode()
341 key = OTHER_KEY; in keyboard_analyze_keycode()
345 key = OTHER_KEY; in keyboard_analyze_keycode()
349 key = OTHER_KEY; in keyboard_analyze_keycode()
353 key = OTHER_KEY; in keyboard_analyze_keycode()
[all …]
/DragonOS-0.1.2/user/apps/shell/
Dshell.c154 int key = 0; in shell_readline() local
158 key = keyboard_analyze_keycode(fd); in shell_readline()
160 if (count_history != 0 && key == 0xc8) in shell_readline()
171 if (count_history != 0 && key == 0x50) in shell_readline()
181 if (key == '\n') in shell_readline()
193 if (key && key != 0x50 && key != 0xc8) in shell_readline()
195 if (key == '\b') in shell_readline()
211 buf[count++] = key; in shell_readline()
212 printf("%c", key); in shell_readline()