Add a terminal-overrides session option allowing individual terminfo(5) entries

to be overridden. The 88col/256col checks are now moved into the default
setting and out of the code.

Also remove a couple of old workarounds for xterm and rxvt which are no longer
necessary (tmux can emulate them if missing).
This commit is contained in:
Nicholas Marriott
2009-08-03 14:10:54 +00:00
parent e4bb08e1f5
commit 1673735f02
9 changed files with 137 additions and 29 deletions

5
tty.c
View File

@ -57,7 +57,7 @@ tty_init(struct tty *tty, char *path, char *term)
}
int
tty_open(struct tty *tty, char **cause)
tty_open(struct tty *tty, const char *overrides, char **cause)
{
int mode;
@ -79,7 +79,8 @@ tty_open(struct tty *tty, char **cause)
else
tty->log_fd = -1;
if ((tty->term = tty_term_find(tty->termname, tty->fd, cause)) == NULL)
tty->term = tty_term_find(tty->termname, tty->fd, overrides, cause);
if (tty->term == NULL)
goto error;
tty->in = buffer_create(BUFSIZ);