Sync OpenBSD patchset 459:

Rewrite xterm-keys code (both input and output) so that works (doesn't always
output the same modifiers, accepts all the possible input keys) and is more
understandable.
This commit is contained in:
Tiago Cunha
2009-10-28 23:03:51 +00:00
parent 1c4b7d33b1
commit 10aab82539
4 changed files with 228 additions and 3 deletions

6
tmux.h
View File

@ -1,4 +1,4 @@
/* $Id: tmux.h,v 1.487 2009-10-28 23:01:44 tcunha Exp $ */
/* $Id: tmux.h,v 1.488 2009-10-28 23:03:51 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -1640,6 +1640,10 @@ void input_parse(struct window_pane *);
void input_key(struct window_pane *, int);
void input_mouse(struct window_pane *, struct mouse_event *);
/* xterm-keys.c */
char *xterm_keys_lookup(int);
int xterm_keys_find(const char *, size_t, size_t *);
/* colour.c */
void colour_set_fg(struct grid_cell *, int);
void colour_set_bg(struct grid_cell *, int);