From 3acb719cae8341f731b926f5b9cc8badfc511e57 Mon Sep 17 00:00:00 2001 From: Edward Wang Date: Wed, 17 Aug 1983 19:52:05 -0800 Subject: [PATCH] fixed default window sizes and say what the escape character is. SCCS-vsn: usr.bin/window/startup.c 3.2 --- usr/src/usr.bin/window/startup.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/usr/src/usr.bin/window/startup.c b/usr/src/usr.bin/window/startup.c index 4e6d728514..cae551383a 100644 --- a/usr/src/usr.bin/window/startup.c +++ b/usr/src/usr.bin/window/startup.c @@ -1,5 +1,5 @@ #ifndef lint -static char *sccsid = "@(#)startup.c 3.1 83/08/11"; +static char *sccsid = "@(#)startup.c 3.2 83/08/17"; #endif #include "defs.h" @@ -21,12 +21,13 @@ doconfig() dodefault() { struct ww *w; - register r = wwnrow / 2; + register r = wwnrow / 2 - 1; - if ((w = openwin(-1, r + 1, wwncol, 0, 0)) == 0) + if ((w = openwin(-1, r, wwncol, 1, 0)) == 0) goto bad; - if (openwin(-1, wwnrow - r, wwncol, r, 0) == 0) + if (openwin(-1, wwnrow - r - 2, wwncol, r + 2, 0) == 0) goto bad; + wwprintf(w, "Escape character is %s.\r\n", unctrl(escapec)); setselwin(w); return; bad: -- 2.20.1