new compression algorithm
[unix-history] / usr / src / usr.bin / window / cmd2.c
index 8872c15..f8bc65e 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[] = "@(#)cmd2.c     3.32 %G%";
-#endif
+static char sccsid[] = "@(#)cmd2.c     3.38 (Berkeley) %G%";
+#endif /* not lint */
 
 #include "defs.h"
 
 
 #include "defs.h"
 
@@ -44,15 +61,18 @@ char *help_longcmd[] = {
        ":foreground # flag      Make # a foreground window, if `flag' is true",
        ":label # string         Set label of window # to `string'",
        ":list                   List all open windows",
        ":foreground # flag      Make # a foreground window, if `flag' is true",
        ":label # string         Set label of window # to `string'",
        ":list                   List all open windows",
-       ":nline lines            Set default window buffer size to `lines'",
+       ":default_nline lines    Set default window buffer size to `lines'",
+       ":default_shell string ...",
+       "                        Set default shell to `string ...'",
+       ":default_smooth flag    Set default smooth scroll flag",
        ":select #               Select window #",
        ":select #               Select window #",
-       ":shell string ...       Set default shell program to `string ...'",
+       ":smooth # flag          Set window # to smooth scroll mode",
        ":source filename        Execute commands in `filename'",
        ":terse flag             Set terse mode",
        ":unalias name           Undefine `name' as an alias",
        ":unset variable         Deallocate `variable'",
        ":variable               List all variables",
        ":source filename        Execute commands in `filename'",
        ":terse flag             Set terse mode",
        ":unalias name           Undefine `name' as an alias",
        ":unset variable         Deallocate `variable'",
        ":variable               List all variables",
-       ":window row col nrow ncol [nline label pty frame shell]",
+       ":window [row col nrow ncol nline label pty frame mapnl keepopen smooth shell]",
        "                        Open a window at `row', `col' of size `nrow', `ncol',",
        "                        with `nline' lines in the buffer, and `label'",
        ":write # string ...     Write `string ...' to window # as input",
        "                        Open a window at `row', `col' of size `nrow', `ncol',",
        "                        with `nline' lines in the buffer, and `label'",
        ":write # string ...     Write `string ...' to window # as input",