Return to tty.c CVS log | Up to [local] / src / usr.bin / tmux |
version 1.165, 2014/02/14 14:37:08 | version 1.166, 2014/02/23 00:53:06 | ||
---|---|---|---|
|
|
||
} | } | ||
int | int | ||
tty_open(struct tty *tty, const char *overrides, char **cause) | tty_open(struct tty *tty, char **cause) | ||
{ | { | ||
char out[64]; | char out[64]; | ||
int fd; | int fd; | ||
|
|
||
tty->log_fd = fd; | tty->log_fd = fd; | ||
} | } | ||
tty->term = tty_term_find(tty->termname, tty->fd, overrides, cause); | tty->term = tty_term_find(tty->termname, tty->fd, cause); | ||
if (tty->term == NULL) { | if (tty->term == NULL) { | ||
tty_close(tty); | tty_close(tty); | ||
return (-1); | return (-1); |