mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-15 16:22:49 +02:00
Sync OpenBSD patchset 327:
The default terminal size should be 80x24, not 80x25.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* $Id: server-msg.c,v 1.83 2009-09-03 20:44:38 tcunha Exp $ */
|
||||
/* $Id: server-msg.c,v 1.84 2009-09-15 23:52:30 tcunha Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -248,7 +248,7 @@ server_msg_identify(struct client *c, struct msg_identify_data *data, int fd)
|
||||
c->tty.sx = 80;
|
||||
c->tty.sy = data->sy;
|
||||
if (c->tty.sy == 0)
|
||||
c->tty.sy = 25;
|
||||
c->tty.sy = 24;
|
||||
|
||||
c->cwd = NULL;
|
||||
data->cwd[(sizeof data->cwd) - 1] = '\0';
|
||||
@ -278,7 +278,7 @@ server_msg_resize(struct client *c, struct msg_resize_data *data)
|
||||
c->tty.sx = 80;
|
||||
c->tty.sy = data->sy;
|
||||
if (c->tty.sy == 0)
|
||||
c->tty.sy = 25;
|
||||
c->tty.sy = 24;
|
||||
|
||||
c->tty.cx = UINT_MAX;
|
||||
c->tty.cy = UINT_MAX;
|
||||
|
Reference in New Issue
Block a user