Add define for Kirk Smith's USR Courier driver. Change default baud
[unix-history] / usr / src / usr.bin / window / startup.c
index f104215..63e5ec5 100644 (file)
@@ -1,7 +1,13 @@
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)startup.c   3.13 84/05/16";
+static char sccsid[] = "@(#)startup.c  3.17 %G%";
 #endif
 
 #endif
 
+/*
+ * Copyright (c) 1983 Regents of the University of California,
+ * All rights reserved.  Redistribution permitted subject to
+ * the terms of the Berkeley Software License Agreement.
+ */
+
 #include "defs.h"
 #include "value.h"
 #include "var.h"
 #include "defs.h"
 #include "value.h"
 #include "var.h"
@@ -29,14 +35,13 @@ dodefault()
        struct ww *w;
        register r = wwnrow / 2 - 1;
 
        struct ww *w;
        register r = wwnrow / 2 - 1;
 
-       if ((w = openwin(-1, 1, 0, r, wwncol, nbufline,
-                               (char *) 0, 1, 1, shellfile, shell)) == 0)
-               return;
-       if (openwin(-1, r + 2, 0, wwnrow - r - 2, wwncol, nbufline,
+       if (openwin(1, r + 2, 0, wwnrow - r - 2, wwncol, nbufline,
                                (char *) 0, 1, 1, shellfile, shell) == 0)
                return;
                                (char *) 0, 1, 1, shellfile, shell) == 0)
                return;
+       if ((w = openwin(0, 1, 0, r, wwncol, nbufline,
+                               (char *) 0, 1, 1, shellfile, shell)) == 0)
+               return;
        wwprintf(w, "Escape character is %s.\r\n", unctrl(escapec));
        wwprintf(w, "Escape character is %s.\r\n", unctrl(escapec));
-       setselwin(w);
 }
 
 setvars()
 }
 
 setvars()