do case insensitive comparison on domain name
[unix-history] / usr / src / usr.bin / window / cmd1.c
index df69d19..d413a85 100644 (file)
@@ -1,6 +1,23 @@
+/*
+ * Copyright (c) 1983 Regents of the University of California.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that the above copyright notice and this paragraph are
+ * duplicated in all such forms and that any documentation,
+ * advertising materials, and other materials related to such
+ * distribution and use acknowledge that the software was developed
+ * by the University of California, Berkeley.  The name of the
+ * University may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)cmd1.c     3.27 %G%";
-#endif
+static char sccsid[] = "@(#)cmd1.c     3.34 (Berkeley) %G%";
+#endif /* not lint */
 
 #include "defs.h"
 #include "char.h"
 
 #include "defs.h"
 #include "char.h"
@@ -13,7 +30,7 @@ c_window()
        if ((id = findid()) < 0)
                return;
        if (!terse)
        if ((id = findid()) < 0)
                return;
        if (!terse)
-               wwputs("Upper left corner: ", cmdwin);
+               wwputs("New window (upper left corner): ", cmdwin);
        col = 0;
        row = 1;
        wwadd(boxwin, framewin->ww_back);
        col = 0;
        row = 1;
        wwadd(boxwin, framewin->ww_back);
@@ -39,14 +56,13 @@ c_window()
                break;
        }
        if (!terse)
                break;
        }
        if (!terse)
-               wwputs("\nLower right corner: ", cmdwin);
+               wwputs("\nNew window (lower right corner): ", cmdwin);
        xcol = col;
        xrow = row;
        for (;;) {
                wwbox(boxwin, row - 1, col - 1,
                        xrow - row + 3, xcol - col + 3);
                wwsetcursor(xrow, xcol);
        xcol = col;
        xrow = row;
        for (;;) {
                wwbox(boxwin, row - 1, col - 1,
                        xrow - row + 3, xcol - col + 3);
                wwsetcursor(xrow, xcol);
-               wwflush();
                while (wwpeekc() < 0)
                        wwiomux();
                switch (getpos(&xrow, &xcol, row, col, wwnrow - 1, wwncol - 1))
                while (wwpeekc() < 0)
                        wwiomux();
                switch (getpos(&xrow, &xcol, row, col, wwnrow - 1, wwncol - 1))
@@ -69,8 +85,8 @@ c_window()
        if (!terse)
                wwputc('\n', cmdwin);
        wwcurtowin(cmdwin);
        if (!terse)
                wwputc('\n', cmdwin);
        wwcurtowin(cmdwin);
-       (void) openwin(id, row, col, xrow-row+1, xcol-col+1, nbufline,
-               (char *) 0, 1, 1, shellfile, shell);
+       (void) openwin(id, row, col, xrow-row+1, xcol-col+1, default_nline,
+               (char *) 0, 1, 1, default_shellfile, default_shell);
 }
 
 getpos(row, col, minrow, mincol, maxrow, maxcol)
 }
 
 getpos(row, col, minrow, mincol, maxrow, maxcol)
@@ -121,9 +137,9 @@ int maxrow, maxcol;
                case 'K':
                        *row = minrow;
                        break;
                case 'K':
                        *row = minrow;
                        break;
-               case ctrl([):
+               case ctrl('['):
                        if (!terse)
                        if (!terse)
-                               wwputs("\nCanceled.  ", cmdwin);
+                               wwputs("\nCancelled.  ", cmdwin);
                        return 3;
                case '\r':
                        return 2;
                        return 3;
                case '\r':
                        return 2;