version 1.18, 2012/03/17 22:35:09 |
version 1.19, 2012/05/06 07:38:17 |
|
|
struct session *s; |
struct session *s; |
struct client *c; |
struct client *c; |
const char *update; |
const char *update; |
char *overrides, *cause; |
char *cause; |
u_int i; |
u_int i; |
|
|
if (RB_EMPTY(&sessions)) { |
if (RB_EMPTY(&sessions)) { |
|
|
server_redraw_client(ctx->curclient); |
server_redraw_client(ctx->curclient); |
s->curw->flags &= ~WINLINK_ALERTFLAGS; |
s->curw->flags &= ~WINLINK_ALERTFLAGS; |
} else { |
} else { |
if (!(ctx->cmdclient->flags & CLIENT_TERMINAL)) { |
if (server_client_open(ctx->cmdclient, s, &cause) != 0) { |
ctx->error(ctx, "not a terminal"); |
ctx->error(ctx, "open terminal failed: %s", cause); |
return (-1); |
|
} |
|
|
|
overrides = |
|
options_get_string(&s->options, "terminal-overrides"); |
|
if (tty_open(&ctx->cmdclient->tty, overrides, &cause) != 0) { |
|
ctx->error(ctx, "terminal open failed: %s", cause); |
|
xfree(cause); |
xfree(cause); |
return (-1); |
return (-1); |
} |
} |