Title: Theory / Unimportant / CS / command line / admin / screen
Tags: récupéré computer_to_instruction hasNotNewEffectReturnsMeaning fromCommandLine seen_description FromInstruction FromVariables automatedNewLineAfterCommaSpace instructionToVariable some_instruction
On every note of this deck, unless a note says otherwise:
Page: https://www.gnu.org/software/screen/manual/screen.html#License
Page: https://www.gnu.org/software/screen/manual/screen.html#License
Prefix: screen
Chapter: 2

Instruction: screen foo
Effect: Executes the configuration file.
creates a single window with a shell in it (or the specified command) and then gets out of your way so that you can use the program as you normally would
Chapter: 1

Instruction: ^i
Effect: Holding Control while pressing i
Context: Config file
Chapter: 1
Variables: i a letter

Fla: -a
Effect: Include all capabilities (with some minor exceptions) in each window's termcap, even if screen must redraw parts of the display in order to implement a function.

Fla: -A
Effect: Adapt the sizes of all windows to the size of the display. By default, screen may try to restore its old window sizes when attaching to resizable terminals (those with ‘WS’ in their descriptions, e.g. suncmd or some varieties of xterm).

Fla: -c foo
Effect: Use foo as the user's configuration file

Instruction: $SYSSCREENRC
Effect: Default global screen config file
Chapter: 2, 4
Section: , .1

Fla: -d [foo]
Effect: Do not start screen, but instead detach a screen session running elsewhere

Fla: -d r [foo]
Effect: Reattach a session and if necessary detach it first.

Fla: -d -R [foo]
Effect: Reattach a session and if necessary detach or even create it first.

Fla: -d -RR [foo]
Effect: Reattach a session and if necessary detach or create it. Use the first session if more than one session is available.

Fla: -D -r [foo]
Effect: Reattach a session. If necessary detach and logout remotely first.

Fla: -D -R [foo]
Effect: Attach here and now. In detail this means: If a session is running, then reattach. If necessary detach and logout remotely first. If it was not running create it and notify the user. This is the author's favorite.

Fla: -D -RR [foo]
Effect: Attach here and now. Whatever that means, just do it.

Fla: -e xy
Effect: Set the command character to x, and the character generating a literal command character (when typed after the command character) to y.

Fla: -f
Effect: Set flow-control to on

Fla: -fn
Effect: Set flow-control to off

Fla: -fa
Effect: Set flow-control to automatic switching mode

Fla: -h num
Effect: Set the history scrollback buffer to be num lines high. Equivalent to the defscrollback command

Fla: -i
Effect: Cause the interrupt key (usually C-c) to interrupt the display immediately when flow control is on. This option is equivalent to the interrupt argument to the defflow command (see Flow Control). Its use is discouraged.

Fla: -l
Effect: Turn login mode on (for /etc/utmp updating).

Fla: -ln
Effect: Turn login mode off (for /etc/utmp updating).

Fla: -ls [foo]
Effect: Do not start screen, but instead print a list of session identification strings (usually of the form pid.tty.host; see Session Name).

Fla: -L
Effect: Tell screen to turn on automatic output logging for the windows.

Variable: $SCREENRC
Meaning: Default screen config file
Page: https://www.gnu.org/software/screen/manual/screen.html#License
Context: screen command line
Section: , .1
Chapter: 2, 4
Initialization: $HOME/.screenrc.

Instruction: #
Effect: Start a comment line
Context: screen
config
Chapter: 4
Section: 1

Instruction: ${FOO}
Effect: The value of the environment variable FOO
Context: screen
config
Chapter: 4
Section: 1
Abbreviation: $FOO

Instruction: source foo
Effect: Read and execute commands from file FOO
Context: screen
config
Chapter: 4
Section: 2

Instruction: (windowlist -b)
Effect: Present a list of all windows for selection. See Selecting.
Context: screen
Chapter: 5
Section: 1
Abbreviation: \"

Instruction: (
  select 0...select 9,
  select -
)
Effect: Switch to window number 0...9, or the blank window. See Selecting.
Chapter: 5
Section: 1
Abbreviation: 0...9,
  -

Instruction: (focus)
Effect: Switch the input focus to the next region. See Regions.
Chapter: 5
Section: 1
Abbreviation: <Tab>

Instruction: (other)
Effect: Toggle to the window displayed previously. If this window does no longer exist, other has the same effect as next. See Selecting.
Chapter: 5
Section: 1
Abbreviation: C-a

Instruction: (meta)
Effect: Send the command character (C-a) to window. See escape command. See Command Character.
Context: Screen
Chapter: 5
Section: 1
Abbreviation: a

Instruction: (title)
Effect: Allow the user to enter a title for the current window. See Naming Windows.
Chapter: 5
Section: 1
Abbreviation: A

Instruction: (pow_break)
Effect: Close and reopen the tty-line.
Context: Screen
Chapter: 5
Section: 1
Abbreviation: B
Extra: See Break.

Instruction: (screen)
Effect: Create a new window with a shell and switch to that window. See Screen Command.
Chapter: 5
Section: 1
Abbreviation: c or C-c

Instruction: (clear)
Effect: Clear the screen.
Chapter: 5
Section: 1
Abbreviation: C
Extra: See Clear.

Instruction: (detach)
Effect: Detach screen from this terminal. See Detach.
Chapter: 5
Section: 1
Abbreviation: d or C-d

Instruction: (pow_detach)
Effect: Detach and logout. See Power Detach.
Context: Screen
Chapter: 5
Section: 1
Abbreviation: D D

Instruction: (flow)
Effect: Cycle flow among ‘on’, ‘off’ or ‘auto’. See Flow.
Chapter: 5
Section: 1
Abbreviation: f or C-f

Instruction: (fit)
Effect: Resize the window to the current region size. See Window Size.
Context: Screen
Chapter: 5
Section: 1
Abbreviation: F

Instruction: (vbell)
Effect: Toggle visual bell mode. See Bell.
Chapter: 5
Section: 1
Abbreviation: C-g

Instruction: (hardcopy)
Effect: Write a hardcopy of the current window to the file “hardcopy.n”.
Chapter: 5
Section: 1
Abbreviation: h
Extra: See Hardcopy.

Instruction: (log)
Effect: Toggle logging of the current window to the file “screenlog.n”. See Log.
Context: Screen
Chapter: 5
Section: 1
Abbreviation: H

Instruction: (info)
Effect: Show info about the current window. See Info.
Chapter: 5
Section: 1
Abbreviation: i or C-i

Instruction: (kill)
Effect: Destroy the current window. See Kill.
Chapter: 5
Section: 1
Abbreviation: k or C-k

Instruction: (redisplay)
Effect: Fully refresh the current window. See Redisplay.
Chapter: 5
Section: 1
Abbreviation: l or C-l

Instruction: (login)
Effect: Toggle the current window's login state. See Login.
Chapter: 5
Section: 1
Abbreviation: L

Instruction: (lastmsg)
Effect: Repeat the last message displayed in the message line. See Last Message.
Chapter: 5
Section: 1
Abbreviation: m or C-m

Instruction: (monitor) Toggle monitoring of the current window. See Monitor.
Effect: <SPC>
Chapter: 5
Section: 1
Abbreviation: M

Instruction: (next)
Effect: Switch to the next window. See Selecting.
Chapter: 5
Section: 1
Abbreviation: n or C-n

Instruction: (number)
Effect: Show the number (and title) of the current window. See Number.
Chapter: 5
Section: 1
Abbreviation: N

Instruction: (prev)
Effect: Switch to the previous window (opposite of n). See Selecting.
Chapter: 5
Section: 1
Abbreviation: p or C-p or C-h or <BackSpace>

Instruction: (xon)
Effect: Send a ^Q (ASCII XON) to the current window. See XON/XOFF.
Chapter: 5
Section: 1
Abbreviation: q or C-q

Instruction: (only)
Effect: Delete all regions but the current one. See Regions.
Chapter: 5
Section: 1
Abbreviation: Q

Instruction: (wrap)
Effect: Toggle the current window's line-wrap setting (turn the current window's automatic margins on or off). See Wrap.
Chapter: 5
Section: 1
Abbreviation: r or C-r

Instruction: (xoff)
Effect: Send a ^S (ASCII XOFF) to the current window. See XON/XOFF.
Chapter: 5
Section: 1
Abbreviation: s or C-s

Instruction: (split)
Effect: Split the current region into two new ones. See Regions.
Chapter: 5
Section: 1
Abbreviation: S

Instruction: (time)
Effect: Show the load average and xref. See Time.
Chapter: 5
Section: 1
Abbreviation: t or C-t

Instruction: (version)
Effect: Display the version and compilation date. See Version.
Chapter: 5
Section: 1
Abbreviation: v

Instruction: (digraph)
Effect: Enter digraph. See Digraph.
Chapter: 5
Section: 1
Abbreviation: C-v

Instruction: (windows)
Effect: Show a list of active windows. See Windows.
Chapter: 5
Section: 1
Abbreviation: w or C-w

Instruction: (width)
Effect: Toggle between 80 and 132 columns. See Window Size.
Chapter: 5
Section: 1
Abbreviation: W

Instruction: (lockscreen)
Effect: Lock your terminal. See Lock.
Chapter: 5
Section: 1
Abbreviation: x or C-x

Instruction: (remove)
Effect: Kill the current region. See Regions.
Chapter: 5
Section: 1
Abbreviation: X

Instruction: (suspend)
Effect: Suspend screen. See Suspend.
Chapter: 5
Section: 1
Abbreviation: z or C-z

Instruction: (reset)
Effect: Reset the virtual terminal to its “power-on” values. See Reset.
Chapter: 5
Section: 1
Abbreviation: Z

Instruction: (dumptermcap)
Effect: Write out a .termcap file. See Dump Termcap.
Chapter: 5
Section: 1
Abbreviation: .

Instruction: (help)
Effect: Show key bindings. See Help.
Chapter: 5
Section: 1
Abbreviation: ?

Instruction: (quit)
Effect: Kill all windows and terminate screen. See Quit.
Chapter: 5
Section: 1
Abbreviation: C-\

Instruction: (colon)
Effect: Enter a command line. See Colon.
Chapter: 5
Section: 1
Abbreviation: :

Instruction: (copy)
Effect: Enter copy/scrollback mode. See Copy.
Chapter: 5
Section: 1
Abbreviation: [ or C-[ or <ESC>

Instruction: (paste .)
Effect: Write the contents of the paste buffer to the stdin queue of the current window. See Paste.
Chapter: 5
Section: 1
Abbreviation: ] or C-]

Instruction: (history)
Effect: Copy and paste a previous (command) line. See History.
Chapter: 5
Section: 1
Abbreviation: { }

Instruction: (writebuf)
Effect: Write the paste buffer out to the screen-exchange file. See Screen Exchange.
Chapter: 5
Section: 1
Abbreviation: >

Instruction: (readbuf)
Effect: Read the screen-exchange file into the paste buffer. See Screen Exchange.
Chapter: 5
Section: 1
Abbreviation: <

Instruction: (removebuf)
Effect: Delete the screen-exchange file. See Screen Exchange.
Chapter: 5
Section: 1
Abbreviation: =

Instruction: (silence)
Effect: Start/stop monitoring the current window for inactivity. See Silence,
Chapter: 5
Section: 1
Abbreviation: _

Instruction: (license)
Effect: Show the copyright page.
Chapter: 5
Section: 1
Abbreviation: ,

Instruction: (displays)
Effect: Show the listing of attached displays.
Chapter: 5
Section: 1
Abbreviation: *

Instruction: (break)
Effect: Send a break to the tty. See Break.
Chapter: 5
Section: 1
Abbreviation: b or C-b

Instruction: A keystroke
Effect: If it is the command character, it moves to command mode. Otherwise, it is given to the current screen
Context: Normal mode
Chapter: 1