version 1.287, 2019/06/11 13:09:00 |
version 1.288, 2019/06/20 06:51:36 |
|
|
|
|
close(c->fd); |
close(c->fd); |
c->fd = -1; |
c->fd = -1; |
|
} else if (c->fd != -1) { |
return; |
if (tty_init(&c->tty, c, c->fd, c->term) != 0) { |
|
close(c->fd); |
|
c->fd = -1; |
|
} else { |
|
if (c->flags & CLIENT_UTF8) |
|
c->tty.flags |= TTY_UTF8; |
|
if (c->flags & CLIENT_256COLOURS) |
|
c->tty.term_flags |= TERM_256COLOURS; |
|
tty_resize(&c->tty); |
|
c->flags |= CLIENT_TERMINAL; |
|
} |
} |
} |
|
|
if (c->fd == -1) |
/* |
return; |
* If this is the first client that has finished identifying, load |
if (tty_init(&c->tty, c, c->fd, c->term) != 0) { |
* configuration files. |
close(c->fd); |
*/ |
c->fd = -1; |
if ((~c->flags & CLIENT_EXIT) && |
return; |
!cfg_finished && |
} |
c == TAILQ_FIRST(&clients) && |
if (c->flags & CLIENT_UTF8) |
TAILQ_NEXT(c, entry) == NULL) |
c->tty.flags |= TTY_UTF8; |
start_cfg(); |
if (c->flags & CLIENT_256COLOURS) |
|
c->tty.term_flags |= TERM_256COLOURS; |
|
|
|
tty_resize(&c->tty); |
|
|
|
if (!(c->flags & CLIENT_CONTROL)) |
|
c->flags |= CLIENT_TERMINAL; |
|
} |
} |
|
|
/* Handle shell message. */ |
/* Handle shell message. */ |