This section describes the commands for creating a new window for running programs. When a new window is created, the first available number from the range 0...9 is assigned to it. The number of windows is limited at compile-time by the MAXWIN configuration parameter.
screen to the specified directory
or, if called without an argument, to your home directory (the value of
the environment variable $HOME). All windows that are created by means
of the screen command from within `.screenrc' or by means of
C-a : screen ... or C-a c use this as their default
directory. Without a chdir command, this would be the directory
from which screen was invoked. Hardcopy and log files are always
written to the window's default directory, not the current
directory of the process running in the window. You can use this
command multiple times in your `.screenrc' to start various windows
in different default directories, but the last chdir value will
affect all the windows you create interactively.
screen, this command (with the given
arguments) is started in the window; otherwise, a shell is created.
Screen has built in some functionality of `cu' and `telnet'. See section Window Types.
Thus, if your `.screenrc' contains the lines
# example for .screenrc: screen 1 screen -fn -t foobar 2 -L telnet foobar
screen creates a shell window (in window #1) and a window with a
TELNET connection to the machine foobar (with no flow-control using the
title `foobar' in window #2) and will write a logfile `screenlog.2'
of the telnet session. If you do not include any
screen commands in your `.screenrc' file, then screen
defaults to creating a single shell window, number zero. When the
initialization is completed, screen switches to the last window
specified in your .screenrc file or, if none, it opens default window
#0.
$SHELL. This is useful if
you'd like to run a tty-enhancer which is expecting to execute the
program specified in $SHELL. If the command begins with
a `-' character, the shell will be started as a login-shell.
defshell is currently a synonym to the shell command.
screen opens, it sets the $TERM
variable to screen by default, unless no description for
screen is installed in the local termcap or terminfo data base.
In that case it pretends that the terminal emulator is `vt100'.
This won't do much harm, as screen is VT100/ANSI compatible. The
use of the term command is discouraged for non-default purpose.
That is, one may want to specify special $TERM settings (e.g. vt100) for
the next screen rlogin othermachine command. Use the command
screen -T vt100 rlogin othermachine rather than setting
and resetting the default.
Screen provides three different window types. New windows are created
with screen's `screen' command (see section Screen Command).
The first parameter to the `screen' command defines which
type of window is created. The different window types are all
special cases of the normal type. They have been added in order
to allow screen to be used efficiently as a console
with 100 or more windows.
<baud_rate>
cs8 or cs7
ixon or -ixon
ixoff or -ixoff
istrip or -istrip
info command shows some of the modem
control lines in the status line.
These may include `RTS', `CTS', `DTR', `CD' and
more. This depends rather on on the available ioctl()'s and system
header files than on the physical capabilities of the serial board.
The name of a logical low (inactive) signal is preceded by an
exclamation mark (`!'), otherwise the signal is logical high (active).
Unsupported but shown signals are usually shown low.
When the CLOCAL status bit is true, the whole set of modem signals is
placed inside curly braces (`{' and `}').
When the CRTSCTS or TIOCSOFTCAR bit is true, the signals
`CTS' or `CD' are shown in parenthesis, respectively.
For tty windows, the command break causes the Data transmission
line (TxD) to go low for a specified period of time. This is expected
to be interpreted as break signal on the other side.
No data is sent and no modem control line is changed when a
break is issued.
//telnet, the second parameter is
expected to be a host name, and an optional third parameter may specify
a TCP port number (default decimal 23). Screen will connect to a
server listening on the remote host and use the telnet protocol to
communicate with that server.
For telnet windows, the command info shows details about
the connection in square brackets (`[' and `]') at the end of
the status line.
b
e
c
t
screen unless instructed otherwise (see also the
command `term').
w
f
break sends the telnet code
IAC BREAK (decimal 243) to the remote host.
Go to the first, previous, next, last section, table of contents.