Ignore .windowrc and create the two default windows instead.
Set the escape character to escape-char. Escape-char can be a single character, or in the form ^X where X is any character, meaning control- X.
Execute the string command as a long command (see below) before doing anything else.
Windows can overlap and are framed as necessary. Each window is named by one of the digits 1 to 9. This one-character identifier, as well as a user definable label string, are displayed with the window on the top edge of its frame. A window can be designated to be in the foreground, in which case it will always be on top of all normal, non-foreground windows, and can be covered only by other foreground windows. A window need not be completely within the edges of the terminal screen. Thus a large window (possibly larger than the screen) may be positioned to show only a portion of its full size.
Each window has a cursor and a set of control functions. Most intelligent terminal operations such as line and character deletion and insertion are supported. Display modes such as underlining and reverse video are available if they are supported by the terminal. In addition, similar to terminals with multiple pages of memory, each window has a text buffer which can have more lines than the window itself.
Select window # as the current window and return to conversation mode.
Select window # but stay in command mode.
Select the previous window and return to conversation mode. This is useful for toggling between two windows.
Return to conversation mode.
Return to conversation mode and write ^P to the current window. Thus, typing two ^P s in conversation mode sends one to the current window. If the window escape is changed to some other character, that character takes the place of ^P here.
List a short summary of commands.
Refresh the screen.
Exit window. Confirmation is requested.
Create a new window. The user is prompted for the positions of the upper left and lower right corners of the window. The cursor is placed on the screen and the keys h, j, k, and l move the cursor left, down, up, and right, respectively. The keys H, J, K, and L move the cursor to the respective limits of the screen. Typing a number before the movement keys repeats the movement that number of times. Return enters the cursor position as the upper left corner of the window. The lower right corner is entered in the same manner. During this process, the placement of the new window is indicated by a rectangular box drawn on the screen, corresponding to where the new window will be framed. Typing escape at any point cancels this command.
This window becomes the current window, and is given the first available ID. The default buffer size is used (see default_nline command below).
Only fully visible windows can be created this way.
Close window #. The process in the window is sent the hangup signal (see kill(1)). The csh(1) utility should handle this signal correctly and cause no problems.
Move window # to another location. A box in the shape of the window is drawn on the screen to indicate the new position of the window, and the same keys as those for the w command are used to position the box. The window can be moved partially off-screen.
Move window # to its previous position.
Change the size of window #. The user is prompted to enter the new lower right corner of the window. A box is drawn to indicate the new window size. The same keys used in w and m are used to enter the position.
Change window # to its previous size.
Scroll the current window up by one line.
Scroll the current window down by one line.
Scroll the current window up by half the window size.
Scroll the current window down by half the window size.
Scroll the current window up by the full window size.
Scroll the current window down by the full window size.
Move the cursor of the current window left by one column.
Move the cursor of the current window down by one line.
Move the cursor of the current window up by one line.
Move the cursor of the current window right by one column.
Yank. The user is prompted to enter two points within the current window. Then the content of the current window between those two points is saved in the yank buffer.
Put. The content of the yank buffer is written to the current window as input.
Stop output in the current window.
Start output in the current window.
Enter a line to be executed as long commands. Normal line editing characters (erase character, erase word, erase line) are supported.
Assignment. The variable of name <expr1>, which must be string valued, is assigned the result of <expr2>. Returns the value of <expr2>.
<expr1> ? <expr2> : <expr3>
Returns the value of <expr2> if <expr1> evaluates true (non-zero numeric value); returns the value of <expr3> otherwise. Only one of <expr2> and <expr3> is evaluated. <Expr1> must be numeric.
<expr1> || <expr2>
Logical or. Numeric values only. Short circuit evaluation is supported (i.e., if <expr1> evaluates true, then <expr2> is not evaluated).
<expr1> && <expr2>
Logical and with short circuit evaluation. Numeric values only.
<expr1> | <expr2>
Bitwise or. Numeric values only.
<expr1> ^ <expr2>
Bitwise exclusive or. Numeric values only.
<expr1> & <expr2>
Bitwise and. Numeric values only.
<expr1> == <expr2>, <expr1> != <expr2>
Comparison (equal and not equal, respectively). The boolean result (either 1 or 0) of the comparison is returned. The operands can be numeric or string valued. One string operand forces the other to be converted to a string in necessary.
Less than, greater than, less than or equal to, greater than or equal to. Both numeric and string values, with automatic conversion as above.
<expr1> << <expr2>, <expr1> >> <expr2>
If both operands are numbers, <expr1> is bit shifted left (or right) by <expr2> bits. If <expr1> is a string, then its first (or last) <expr2> characters are returns (if <expr2> is also a string, then its length is used in place of its value).
<expr1> + <expr2>, <expr1> - <expr2>
Addition and subtraction on numbers. For +, if one argument is a string, then the other is converted to a string, and the result is the concatenation of the two strings.
The first three are unary minus, bitwise complement and logical complement on numbers only. The operator, $, takes <expr> and returns the value of the variable of that name. If <expr> is numeric with value n and it appears within an alias macro (see below), then it refers to the nth argument of the alias invocation. $? tests for the existence of the variable <expr>, and returns 1 if it exists or 0 otherwise.
Function call. <Expr> must be a string that is the unique prefix of the name of a builtin window function or the full name of a user defined alias macro. In the case of a builtin function, <arglist> can be in one of two forms:
<expr1>, <expr2>, ...
argname1 = <expr1>, argname2 = <expr2>, ...
The two forms can in fact be intermixed, but the result is unpredictable. Most arguments can be omitted; default values will be supplied for them. The argnames can be unique prefixes of the argument names. The commas separating arguments are used only to disambiguate, and can usually be omitted.
Only the first argument form is valid for user defined aliases. Aliases are defined using the alias builtin function (see below). Arguments are accessed via a variant of the variable mechanism (see $ operator above).
Most functions return value, but some are used for side effect only and so must be used as statements. When a function or an alias is used as a statement, the parentheses surrounding the argument list may be omitted. Aliases return no value.
[<string>], [<string-list>] ) If no argument is given, all currently defined alias macros are listed. Otherwise, <string> is defined as an alias, with expansion <string-list >>. The previous definition of <string>, if any, is returned. Default for <string-list> is no change.
Close the windows specified in <window-list>. If <window-list> is the word all, than all windows are closed. No value is returned.
Set the window cursor to modes. Modes is the bitwise or of the mode bits defined as the variables m_ul (underline), m_rev (reverse video), m_blk (blinking), and m_grp (graphics, terminal dependent). Return value is the previous modes. Default is no change. For example, cursor($m_rev$m_blk) sets the window cursors to blinking reverse video.
Set the default buffer size to nline. Initially, it is 48 lines. Returns the old default buffer size. Default is no change. Using a very large buffer can slow the program down considerably.
Set the default window shell program to <string-list>. Returns the first string in the old shell setting. Default is no change. Initially, the default shell is taken from the environment variable SHELL.
Set the default value of the smooth argument to the command window (see below). The argument is a boolean flag (one of on, off, yes, no, true, false, or a number, as described above). Default is no change. The old value (as a number) is returned. The initial value is 1 (true).
echo( [window], [<string-list>])
Write the list of strings, <string-list>, to window, separated by spaces and terminated with a new line. The strings are only displayed in the window, the processes in the window are not involved (see write below). No value is returned. Default is the current window.
Set the escape character to escape-char. Returns the old escape character as a one-character string. Default is no change. Escapec can be a string of a single character, or in the form -^X , meaning control- X.
Move window in or out of foreground. Flag is a boolean value. The old foreground flag is returned. Default for window is the current window, default for flag is no change.
Set the label of window to label. Returns the old label as a string. Default for window is the current window, default for label is no change. To turn off a label, set it to an empty string ("").
No arguments. List the identifiers and labels of all windows. No value is returned.
Make window the current window. The previous current window is returned. Default is no change.
Read and execute the long commands in filename. Returns -1 if the file cannot be read, 0 otherwise.
Set terse mode to flag. In terse mode, the command window stays hidden even in command mode, and errors are reported by sounding the terminals bell. Flag can take on the same values as in foreground above. Returns the old terse flag. Default is no change.
Undefine alias. Returns -1 if alias does not exist, 0 otherwise.
Undefine variable. Returns -1 if variable does not exist, 0 otherwise.
No arguments. List all variables. No value is returned.
Open a window with upper left corner at row, column and size nrow, ncol. If nline is specified, then that many lines are allocated for the text buffer. Otherwise, the default buffer size is used. Default values for row, column, nrow, and ncol are, respectively, the upper, left-most, lower, or right-most extremes of the screen. Label is the label string. Frame, pty, and mapnl are flag values interpreted in the same way as the argument to foreground (see above); they mean, respectively, put a frame around this window (default true), allocate pseudo-terminal for this window rather than socketpair (default true), and map new line characters in this window to carriage return and line feed (default true if socketpair is used, false otherwise). Normally, a window is automatically closed when its process exits. Setting keepopen to true (default false) prevents this action. When smooth is true, the screen is updated more frequently (for this window) to produce a more terminal-like behavior. The default value of smooth is set by the default_smooth command (see above). Shell is a list of strings that will be used as the shell program to place in the window (default is the program specified by default_shell, see above). The created windows identifier is returned as a number.
Send the list of strings, <string-list>, to window, separated by spaces but not terminated with a new line. The strings are actually given to the window as input. No value is returned. Default is the current window.
The display modes (reverse video, underline, blinking, graphics) supported by the physical terminal. The value of modes is the bitwise or of some of the one bit values, m_blk, m_grp, m_rev, and m_ul (see below). These values are useful in setting the window cursors modes (see cursormodes above).
The blinking mode bit.
The graphics mode bit (not very useful).
The reverse video mode bit.
The underline mode bit.
The number of columns on the physical screen.
The number of rows on the physical screen.
The terminal type. The standard name, found in the second name field of the terminals TERMCAP entry, is used.