version 1.19, 2010/12/29 21:49:06 |
version 1.20, 2011/01/01 03:43:20 |
|
|
#define INPUTKEY_CURSOR 0x2 /* cursor key */ |
#define INPUTKEY_CURSOR 0x2 /* cursor key */ |
}; |
}; |
|
|
struct input_key_ent input_keys[] = { |
const struct input_key_ent input_keys[] = { |
/* Backspace key. */ |
/* Backspace key. */ |
{ KEYC_BSPACE, "\177", 0 }, |
{ KEYC_BSPACE, "\177", 0 }, |
|
|
|
|
void |
void |
input_key(struct window_pane *wp, int key) |
input_key(struct window_pane *wp, int key) |
{ |
{ |
struct input_key_ent *ike; |
const struct input_key_ent *ike; |
u_int i; |
u_int i; |
size_t dlen; |
size_t dlen; |
char *out; |
char *out; |
u_char ch; |
u_char ch; |
|
|
log_debug2("writing key 0x%x", key); |
log_debug2("writing key 0x%x", key); |
|
|