The commands described here do not fit well under any of the other categories.
nethack-like error messages.
screen.
At changes the context (the `current window' or `current display'
setting) of the command. If the first parameter describes a non-unique context,
the command will be executed multiple times. If the first parameter is of the
form `identifier*' then identifier is matched against user names.
The command is executed once for each display of the selected user(s).
If the first parameter is of the form `identifier%' identifier is
matched against displays. Displays are named after the ttys they attach. The
prefix `/dev/' or `/dev/tty' may be omitted from the identifier.
If identifier has a # or nothing appended it is matched against
window numbers and titles. Omitting an identifier in front of the #,
* or % character selects all users, displays or windows because
a prefix-match is performed. Note that on the affected display(s) a short
message will describe what happened.
Note that the # character works as a comment introducer when it is
preceded by whitespace. This can be escaped by prefixing # with a
\.
Permission is checked for the initiator of the at command, not for the
owners of the affected display(s).
Caveat:
When matching against windows, the command is executed at least
once per window. Commands that change the internal arrangement of windows
(like other) may be called again. In shared windows the command will
be repeated for each attached display. Beware, when issuing toggle commands
like login!
Some commands (e.g. \*Qprocess) require
that a display is associated with the target windows. These commands may not
work correctly under at looping over windows.
defbreaktype. This will be changed in
the future.
Calling breaktype with no parameter displays the break setting for the
current window.
tcsendbreak and
TIOCSBRK. The third, TCSBRK, blocks the complete screen
session for the duration of the break, but it may be the only way to
generate long breaks. tcsendbreak and TIOCSBRK may or may not
produce long breaks with spikes (e.g. 4 per second). This is not only system
dependant, this also differs between serial board drivers.
Calling defbreaktype with no parameter displays the current setting.
screen has been compiled with
option -DDEBUG debugging is available and is turned on per default.
Note that this command only affects debugging output from the main
`SCREEN' process correctly. Debug output from attacher processes can only
be turned off once and forever.
screen is
started without options, which should be often enough.
screen. When you are
familiar with the game nethack, you may enjoy the nethack-style
messages which will often blur the facts a little, but are much funnier
to read. Anyway, standard messages often tend to be unclear as well.
This option is only available if screen was compiled with the
NETHACK flag defined (see section Installation). The default setting is then
determined by the presence of the environment variable
$NETHACKOPTIONS.
off (this is the default) screen waits until the display
restarts to accept the output. If nonblock is on, screen
waits until the timeout is reached (on is treated as 1s). If the
display still doesn't receive characters, screen will consider
it "blocked" and stop sending characters to it. If at
some time it restarts to accept characters, screen will unblock
the display and redisplay the updated window contents.
nonblock command except that the default setting for
displays is changed. Initial setting is off.
silencewait command or by specifying a number of seconds instead of
on or off. Silence is initially off for all windows.
silence command except that the default setting for
new windows is changed. Initial setting is `off'.
info (see section Info).
If a string is specified, it changes the format of the time report
like it is described in the string escapes chapter (see section String Escapes). Screen uses a default of `%c:%s %M %d %H%? %l%?'.
kill command may be used to remove the window. Pressing the first key
in the dead window has the same effect. Pressing the second key, however,
screen will attempt to resurrect the window. The process that was initially
running in the window will be launched again. Calling zombie without
parameters will clear the zombie setting, thus making windows disappear when
the process terminates.
As the zombie setting is affected globally for all windows, this command
should only be called defzombie. Until we need this as a per window
setting, the commands zombie and defzombie are synonymous.
po/pf for printing if it detects an ansi print
sequence ESC [ 5 i, but pipe the output into cmd.
This should normally be a command like `lpr' or
`cat > /tmp/scrprint'.
Printcmd without an argument displays the current setting.
The ansi sequence ESC \ ends printing and closes the pipe.
Warning: Be careful with this command! If other user have write access to your terminal, they will be able to fire off print commands.
i
stands for high-intensity foreground color and I for
high-intensity background color.
Examples:
attrcolor b "R"
attrcolor u "-u b"
attrcolor b ".I"
attrcolor i "+b"
off, this is not done
anymore and all windows will be in the same process group as the
screen backend process. This also breaks job-control, so be careful.
The default is on, of course. This command is probably useful
only in rare circumstances.
%` string escape (see section String Escapes).
The specified lifespan is the number
of seconds the output is considered valid. After this time, the
command is run again if a corresponding string escape is encountered.
The autorefresh parameter triggers an
automatic refresh for caption and hardstatus strings after the
specified number of seconds. Only the last line of output is used
for substitution.
If both the lifespan and the autorefresh parameters are zero, the backtick program is expected to stay in the background and generate output once in a while. In this case, the command is executed right away and screen stores the last line of output. If a new line gets printed screen will automatically refresh the hardstatus or the captions.
The second form of the command deletes the backtick command with the numerical id id.
blanker command to create a screen blanker, but
it can be any screen command. If no command is specified,
only the timeout is set. A timeout of zero (ot the special
timeout off) disables the timer. If no arguments are
given, the current settings are displayed.
This command is normally used together with the idle
command.
pass
and catch. If the mode is set to pass, screen will
relay all data to the attacher until the end of the
transmission is reached. In catch mode screen acts as a
zmodem endpoint and starts the corresponding rz/sz commands.
If the mode is set to auto, screen will use catch if
the window is a tty (e.g. a serial line), otherwise it
will use pass.
You can define the templates screen uses in catch mode
via the second and the third form.
Note also that this is an experimental feature.
Go to the first, previous, next, last section, table of contents.