Return to server-msg.c CVS log | Up to [local] / src / usr.bin / tmux |
version 1.13, 2009/08/11 21:28:11 | version 1.14, 2009/08/13 12:15:45 | ||
---|---|---|---|
|
|
||
server_msg_identify(struct client *c, struct msg_identify_data *data, int fd) | server_msg_identify(struct client *c, struct msg_identify_data *data, int fd) | ||
{ | { | ||
c->tty.sx = data->sx; | c->tty.sx = data->sx; | ||
if (c->tty.sx == 0) | |||
c->tty.sx = 80; | |||
c->tty.sy = data->sy; | c->tty.sy = data->sy; | ||
if (c->tty.sy == 0) | |||
c->tty.sy = 25; | |||
c->cwd = NULL; | c->cwd = NULL; | ||
data->cwd[(sizeof data->cwd) - 1] = '\0'; | data->cwd[(sizeof data->cwd) - 1] = '\0'; |