From 7497ecd9798f738c585f1db1bded99ebf97182cf Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 11 Jan 2017 16:05:46 +0000 Subject: Use a macro for looking up tty types. --- tmux.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tmux.h') diff --git a/tmux.h b/tmux.h index e0087101..66b8d3af 100644 --- a/tmux.h +++ b/tmux.h @@ -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 { -- cgit From bf6a5c056d4be87d68d0e3e409dbf8f116bc9317 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 11 Jan 2017 16:09:57 +0000 Subject: Add a format for terminal type. --- tmux.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tmux.h') diff --git a/tmux.h b/tmux.h index 66b8d3af..3108f81e 100644 --- a/tmux.h +++ b/tmux.h @@ -1112,9 +1112,6 @@ struct tty { u_int rleft; u_int rright; - char *termname; - struct tty_term *term; - int fd; struct bufferevent *event; @@ -1131,6 +1128,8 @@ struct tty { #define TTY_FOCUS 0x40 int flags; + struct tty_term *term; + char *term_name; int term_flags; enum { TTY_VT100, -- cgit