version 1.8, 2009/07/26 12:58:44 |
version 1.9, 2009/08/03 14:10:54 |
|
|
{ |
{ |
struct cmd_new_session_data *data = self->data; |
struct cmd_new_session_data *data = self->data; |
struct session *s; |
struct session *s; |
char *cmd, *cwd, *cause; |
char *overrides, *cmd, *cwd, *cause; |
int detached; |
int detached; |
u_int sx, sy; |
u_int sx, sy; |
|
|
|
|
return (-1); |
return (-1); |
} |
} |
|
|
if (tty_open(&ctx->cmdclient->tty, &cause) != 0) { |
overrides = |
|
options_get_string(&global_s_options, "terminal-overrides"); |
|
if (tty_open(&ctx->cmdclient->tty, overrides, &cause) != 0) { |
ctx->error(ctx, "open terminal failed: %s", cause); |
ctx->error(ctx, "open terminal failed: %s", cause); |
xfree(cause); |
xfree(cause); |
return (-1); |
return (-1); |