screen
, this command (with the given
arguments) is started in the window; otherwise, a shell is created.
If a tty (character special device) name (e.g. `/dev/ttyS0') is specified as cmd, then the window is directly connected to this device. This is similar to the cmd `kermit -l /dev/ttyS0 -c' but saves resources and is more efficient.
Thus, if your `.screenrc' contains the lines
# example for .screenrc: screen 1 screen -fn -t foobar 2 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). 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.
Go to the first, previous, next, last section, table of contents.