Use a macro for looking up tty types.

This commit is contained in:
nicm
2017-01-11 16:05:46 +00:00
parent 458b6eb600
commit 7497ecd979
2 changed files with 17 additions and 20 deletions

2
tmux.h
View File

@ -1152,6 +1152,8 @@ struct tty {
struct event key_timer;
struct tty_key *key_tree;
};
#define TTY_TYPES \
{ "VT100", "VT101", "VT102", "VT220", "VT320", "VT420", "UNKNOWN" }
/* TTY command context. */
struct tty_ctx {