Screen Config

From FBSD_tips

Jump to: navigation, search

[edit] Screen Tabs

GNU Screen is a free terminal multiplexer developed by the GNU Project. It allows a user to access multiple separate terminal sessions inside a single terminal window or remote terminal session. It is useful for dealing with multiple programs from the command line, and for separating programs from the shell that started the program.

Most system admins (including myself) rely on screen when doing tasks on remote systems. However few utilize the many features screen has available! Here I'll show a few examples to make screen more useable.

# enable SHIFT-PGUP / SHIFT-PGDOWN scroll
termcapinfo rxvt ti@:te@

# change window with ALT-Q and ALT-W
bindkey "^[q" prev
bindkey "^[w" next

startup_message off
nethack on
deflogin on
defscrollback 1000

# Optional name and command to execute
screen -t freebsd 1
screen -t unix 2
screen -t ports 3
screen -t admin 4
screen -t systm 5 su
select 1

# Display $USER and screen titles in a neat way :P
hardstatus alwayslastline '%{= M} %H%{= G} %l %= %{= w}%-w%{+b r}%n*%t%{-b r}%{w}%+w %= %{c}%d %D %{B}%c '

# general
autodetach on
vbell           off
shelltitle      sh

Like I said these are just a few of the many options you can use to make screen custom for you.

Personal tools