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