Provide ANSI/VT100 terminal emulation, making it possible to run multiple full-screen pseudo-terminals from one real terminal, and letting you manipulate and save your screen input and output, copy and paste between windows, etc.
Include all capabilities in each window's termcap.
Adapt all windows to the size of the current terminal. Default is to try to use the previous window size.
Use file as the configuration file instead of the default $HOME/.screenrc.
Detach session running elsewhere. With -r, reattach to this terminal. With -R, reattach to this terminal or create it if it doesn't already exist. With -RR, use the first session when reattaching if more than one session is available.
Detach session running elsewhere, logging out before detaching. With -r, reattach to this terminal. With -R, reattach to this terminal or create it if it doesn't already exist. With -RR, do whatever is necessary to create a new session.
Change command characters. Specify x as the command character (default Ctrl-a) and y as the character that generates a literal command character (default a). Specify in caret notation (e.g., -e^Pp to set Ctrl-p as the command character, which is useful for emacs-mode shell ).
-f, -fn, -fa
Turn flow control on, off, or to automatic-switching mode.
Specify the size of the history scrollback buffer.
Cause the interrupt key (usually Ctrl-c) to interrupt the display immediately when flow control is on. Use of this option is discouraged.
Turn login mode on or off for /etc/utmp updating.
Print list of pid.tty.host strings identifying screen sessions.
Tell screen that automargin terminal has a writable last position.
Ignore the $STY environment variable and create a new session. With -d, start session in detached mode; useful for scripts. With -D, start session in detached mode but don't fork a new process; the command exits if the session terminates.
Use optimal output mode for terminal rather than true VT100 emulation.
Preselect the specified window if it exists.
Suppress error message printing on startup. Exit with nonzero return code if unsuccessful.
Resume detached session. No other options except -d or -D can be specified. With sessionowner, resume another user's detached session; requires setuid root.
Attempt to resume the first session found, or start a new session with the specified options. Set by default if screen is run as a login shell.
Set the default shell, overriding the $SHELL environment variable.
Specify a name for the session being started.
Set the window's title.
Set $TERM to term instead of "screen".
Run in UTF-8 mode and set the default for new windows to UTF-8.ctrl.
Print version information and exit.
Like -ls, but remove destroyed sessions instead of marking them dead. If a match is specified, it should be in the same form as the argument to the -r option.
Attach to a session that is not detached. Requires multi-display mode.
Run specified command in specified session. Requires multi-display mode, and session must not be password-protected.
screen commands consist of a command character (Ctrl-a by default) followed by another character. For many of the commands, you can also specify the character as Ctrl-character--e.g., Ctrl-a Ctrl-d as well as Ctrl-a d. The default key bindings are listed here. You can change the bindings for yourself in the $HOME/.screenrc configuration file, or for all users in /etc/screenrc. The term in parentheses that follows the description is the equivalent configuration-file command for changing the key binding.
Prompt for window name or number to switch to. (select)
List all windows for selection. (windowlist -b)
Switch to window num, where num is a digit in the range 0-9 or - (the blank window). (selectnum)
Switch input focus to next region. (focus)
Toggle to previously displayed window. (other)
Send the command character (Ctrl-a) to the window. (meta)
Prompt user to enter a name for the current window. (title)
Send a break to the window. (break)
Reopen the terminal line and send a break. (pow-break)
Create a new window with a shell and switch to it. (screen)
Clear the screen. (clear)
Detach screen from this terminal. (detach)
Ctrl-a D D
Detach and log out. (pow-detach)
Toggle flow control between on, off, and auto. (flow)
Resize window to current region size. (fit)
Toggle visual bell mode. (vbell)
Write contents of the current window to the file hardcopy.n. (hardcopy)
Begin/end logging of the current window to the file screenlog.n. (log)
Show information about this window. (info)
Kill current window. (kill)
Refresh current window. (redisplay)
Toggle window's login slot. Requires that screen be configured to update the utmp database. (login)
Redisplay last message. (lastmsg)
Toggle monitoring of the current window. (monitor)
Switch to next window. (next)
Show number and title of current window. (number)
Switch to previous window. (prev)
Send a start signal (associated with Ctrl-q by terminals) to current window. (xon)
Delete all regions except the current one. (only)
Toggle current window's line-wrap setting. (wrap)
Send a stop signal (associated with Ctrl-s by terminals) to current window. (xoff)
Split current region into two new regions. (split)
Show system information, including time and date. (time)
Display version information. (version)
Enter digraph for entering characters that can't normally be entered. (digraph)
List all windows. (windows)
Toggle 80/132 columns. (width)
Lock terminal. (lockscreen)
Kill the current region. (remove)
Suspend screen. (suspend)
Reset virtual terminal to its "power-on" values. (reset)
Write out a .termcap file. (dumptermcap)
Show all key bindings. (help)
Kill all windows and terminate screen. (quit)
Enter command-line mode. (colon)
Enter copy/scrollback mode. (copy)
Write contents of the paste buffer to the standard input queue of the current window. (paste)
Copy and paste a previous line. (history)
Write paste buffer to a file. (writebuf)
Read screen-exchange file into paste buffer. (readbuf)
Remove file used by Ctrl-a < and Ctrl-a >. (removebuf)
Show where screen comes from, where it went to, and why you can use it. (license)
Start/stop monitoring the current window for inactivity. (silence)