Detect iTerm2 and use DECSLRM for it as well.

This commit is contained in:
nicm
2017-04-18 18:21:37 +00:00
parent fb3c5efa50
commit 623e35f594
3 changed files with 50 additions and 4 deletions

4
tmux.h
View File

@ -1071,6 +1071,7 @@ struct tty {
TTY_VT220,
TTY_VT320,
TTY_VT420,
TTY_ITERM2,
TTY_UNKNOWN
} term_type;
@ -1085,7 +1086,8 @@ struct tty {
struct tty_key *key_tree;
};
#define TTY_TYPES \
{ "VT100", "VT101", "VT102", "VT220", "VT320", "VT420", "UNKNOWN" }
{ "VT100", "VT101", "VT102", "VT220", "VT320", "VT420", "iTerm2", \
"Unknown" }
/* TTY command context. */
struct tty_ctx {