wiki:tech:linux:screen
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
wiki:tech:linux:screen [2018/10/10 17:40] – created kpc | wiki:tech:linux:screen [2018/10/10 17:49] (current) – kpc | ||
---|---|---|---|
Line 1: | Line 1: | ||
source: http:// | source: http:// | ||
- | screen rc file: | ||
- | + | alternatives: | |
- | See also the tmux alternative | + | * tmux alternative |
- | See also the byobu screen config manager. | + | * byobu screen config manager. |
- | See also the reptyr as another way to reattach programs to a terminal. | + | * reptyr as another way to reattach programs to a terminal. |
Note for nested screen sessions, use " | Note for nested screen sessions, use " | ||
Line 19: | Line 18: | ||
|||| | |||| | ||
|Ctrl+a S |split terminal horizontally into regions |Ctrl+a c to create new window there| | |Ctrl+a S |split terminal horizontally into regions |Ctrl+a c to create new window there| | ||
- | |Ctrl+a | + | |Ctrl+a |
|Ctrl+a : | |Ctrl+a : | ||
|Ctrl+a :fit |fit screen size to new terminal size |Ctrl+a F is the same. Do after resizing xterm| | |Ctrl+a :fit |fit screen size to new terminal size |Ctrl+a F is the same. Do after resizing xterm| | ||
Line 32: | Line 31: | ||
|Ctrl+a > |write paste buffer to file |useful for copying between screens| | |Ctrl+a > |write paste buffer to file |useful for copying between screens| | ||
|Ctrl+a < |read paste buffer from file |useful for pasting between screens| | |Ctrl+a < |read paste buffer from file |useful for pasting between screens| | ||
- | + | |||| | |
- | Ctrl+a ? show key bindings/ | + | |Ctrl+a ? |show key bindings/ |
- | Ctrl+a : goto screen command prompt up shows last command entered | + | |Ctrl+a : |goto screen command prompt |up shows last command entered| |
+ | |||
+ | < | ||
+ | # Bind F11 and F12 (NOT F1 and F2) to previous and next screen window | ||
+ | bindkey -k F1 prev | ||
+ | bindkey -k F2 next | ||
+ | |||
+ | # Also for ctrl-alt right and left arrows | ||
+ | # Note disable in window manager to allow through | ||
+ | bindkey ^[[1;7D prev | ||
+ | bindkey ^[[1;7C next | ||
+ | |||
+ | startup_message off | ||
+ | |||
+ | # Window list at the bottom. | ||
+ | hardstatus alwayslastline | ||
+ | hardstatus string " | ||
+ | |||
+ | # From Stephen Shirley | ||
+ | # Don't block command output if the terminal stops responding | ||
+ | # (like if the ssh connection times out for example). | ||
+ | nonblock on | ||
+ | |||
+ | # Allow editors etc. to restore display on exit | ||
+ | # rather than leaving existing text in place | ||
+ | altscreen on | ||
+ | |||
+ | # Enable 256-color mode when screen is started with TERM=xterm-256color | ||
+ | # Taken from: http:// | ||
+ | # | ||
+ | # Note that TERM != " | ||
+ | # " | ||
+ | # | ||
+ | # terminfo and termcap for nice 256 color terminal | ||
+ | # allow bold colors - necessary for some reason | ||
+ | attrcolor b " | ||
+ | # tell screen how to set colors. AB = background, AF=foreground | ||
+ | # | ||
+ | |||
+ | </ |
wiki/tech/linux/screen.1539182433.txt.gz · Last modified: 2018/10/10 17:40 by kpc