summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-09-15 07:45:17 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-09-15 07:45:17 +0000
commit1259f67a3c123c6cde811b01a175045731ca1661 (patch)
tree6e8186808cb48c1c3145db59f0ef13be9470229d /usr.bin
parent420c66102dff0eb493dc933d0e433b49fdc40e05 (diff)
The default terminal size should be 80x24, not 80x25.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tmux/cmd-new-session.c4
-rw-r--r--usr.bin/tmux/server-msg.c6
-rw-r--r--usr.bin/tmux/server.c4
3 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/tmux/cmd-new-session.c b/usr.bin/tmux/cmd-new-session.c
index 0620dec28de..77322fabd68 100644
--- a/usr.bin/tmux/cmd-new-session.c
+++ b/usr.bin/tmux/cmd-new-session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-new-session.c,v 1.17 2009/09/12 09:54:34 nicm Exp $ */
+/* $OpenBSD: cmd-new-session.c,v 1.18 2009/09/15 07:45:16 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -197,7 +197,7 @@ cmd_new_session_exec(struct cmd *self, struct cmd_ctx *ctx)
/* Find new session size. */
if (detached) {
sx = 80;
- sy = 25;
+ sy = 24;
} else if (ctx->cmdclient != NULL) {
sx = ctx->cmdclient->tty.sx;
sy = ctx->cmdclient->tty.sy;
diff --git a/usr.bin/tmux/server-msg.c b/usr.bin/tmux/server-msg.c
index 8393aa699c2..6901c93d3bc 100644
--- a/usr.bin/tmux/server-msg.c
+++ b/usr.bin/tmux/server-msg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server-msg.c,v 1.16 2009/09/02 16:38:35 nicm Exp $ */
+/* $OpenBSD: server-msg.c,v 1.17 2009/09/15 07:45:16 nicm 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;
diff --git a/usr.bin/tmux/server.c b/usr.bin/tmux/server.c
index 71384915d27..b21fa1ed8cd 100644
--- a/usr.bin/tmux/server.c
+++ b/usr.bin/tmux/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.36 2009/09/14 11:25:35 nicm Exp $ */
+/* $OpenBSD: server.c,v 1.37 2009/09/15 07:45:16 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -97,7 +97,7 @@ server_create_client(int fd)
c->session = NULL;
c->tty.sx = 80;
- c->tty.sy = 25;
+ c->tty.sy = 24;
screen_init(&c->status, c->tty.sx, 1, 0);
c->message_string = NULL;