Changes in uspace/srv/hid/input/ctl/stty.c [dcbb3ec:60e5a856] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/ctl/stty.c
rdcbb3ec r60e5a856 33 33 /** 34 34 * @file 35 * @brief Serial TTY-like keyboard controller driver. 36 * 37 * Keyboard emulation on a serial terminal. 35 * @brief Serial TTY-like keyboard controller driver. 38 36 */ 39 37 … … 45 43 #include <stroke.h> 46 44 47 static void stty_ctl_parse (sysarg_t);45 static void stty_ctl_parse_scancode(int); 48 46 static int stty_ctl_init(kbd_dev_t *); 49 static void stty_ctl_set_ind(kbd_dev_t *, unsigned int);47 static void stty_ctl_set_ind(kbd_dev_t *, unsigned); 50 48 51 49 kbd_ctl_ops_t stty_ctl = { 52 .parse = stty_ctl_parse,50 .parse_scancode = stty_ctl_parse_scancode, 53 51 .init = stty_ctl_init, 54 52 .set_ind = stty_ctl_set_ind … … 65 63 #include <stdio.h> 66 64 67 /**68 * Sequnece definitions are primarily for Xterm. Additionally we define69 * sequences that are unique to Gnome terminal -- most are the same but70 * some differ.71 */72 65 static int seq_defs[] = { 73 66 /* Not shifted */ … … 88 81 0, KC_MINUS, 0x2d, GSP_END, 89 82 0, KC_EQUALS, 0x3d, GSP_END, 90 91 83 0, KC_BACKSPACE, 0x08, GSP_END, 92 84 … … 224 216 0, KC_RIGHT, 0x1b, 0x5b, 0x43, GSP_END, 225 217 226 /*227 * Sequences specific to Gnome terminal228 */229 0, KC_BACKSPACE, 0x7f, GSP_END, /* ASCII DEL */230 0, KC_HOME, 0x1b, 0x4f, 0x48, GSP_END,231 0, KC_END, 0x1b, 0x4f, 0x46, GSP_END,232 233 218 0, 0 234 219 }; … … 243 228 } 244 229 245 static void stty_ctl_parse (sysarg_t scancode)230 static void stty_ctl_parse_scancode(int scancode) 246 231 { 247 232 unsigned mods, key;
Note:
See TracChangeset
for help on using the changeset viewer.