# This is a configuration file for the GNU `screen` program, version 4.00.03, a
# very, very useful program for emulating multiple terminal windows in a single
# This command sets the string to display when activity occurs in a monitored
# window. It differs from the default string only in that a bell is sounded
# before printing the message.
activity '^GActivity in window %n'
# Refresh the entire display when switching windows:
# This command enables "alternate screens" so that full-screen programs run
# within `screen` will not affect any output already on the display and will
# return it to the way it was when exiting.
# This command sets the string to display when a bell is printed in a
# background window. It differs from the default string only in that a bell is
# sounded before printing the message.
bell_msg '^GBell in window %n'
# Use UTF-8:
# Set the number of lines to remember for scrollback to 1024:
# Turn on line wrapping in all windows:
# Set the command character to ^F instead of ^A (which I need for line editing
# in bash and playing NetHack) and set the `meta' command key to 'f':
# Append to hardcopy files rather than overwriting them:
# Don't run any special commands while inactive:
# Display messages for up to 3 seconds:
# Use NetHack-style messages:
# Require a password for resuming detached `screen` sessions; insert your own
# (encrypted) password here:
# Set `bash` to be the default program to run in new windows:
# Set the default title of new windows to be "Shell":
# Don't display the copyright notice on startup:
# Declare the terminal type as `xterm-color':
# Use an audible bell instead of a visual one:
# This command changes the keybindings in copy mode slightly to something I'm
# more comfortable with; 'S' scrolls up one screen, 's' scrolls down one
# screen, and 'v' marks the beginning or end of copied text.
# These commands rebind a number of keys; see the `screen` manpage for exactly
# which command means what.
bind D detach
bind G windowlist -b
bind K kill
bind L log
bind T title
bind ^C copy
bind ^F meta
bind ^G windowlist -b
bind ^P lastmsg
bind ^R command -c regions
bind ^V paste .
bind b other
bind g select
bind m monitor
# These keys are dangerous in their default settings and must be neutralized:
# Since 'F' is right next to 'D' on the keyboard, "^F^D" is very easy to
# accidentally type.
# Hitting ESC after ^F now cancels the `screen` command:
# These commands bind a number of keys for use in managing display regions;
# they must be preceded by "^F^R" in order to be used.
bind -c regions - resize -1
bind -c regions + resize +1
bind -c regions = resize =
bind -c regions m resize min
bind -c regions M resize max
bind -c regions | split
bind -c regions s split
bind -c regions x remove
bind -c regions O only
bind -c regions j focus down
bind -c regions k focus up
bind -c regions \^ focus top
bind -c regions 0 focus top
bind -c regions $ focus bottom
bind -c regions ^[
bind -c regions ^R stuff ^R
bind -c regions ^I focus
bind -c regions w fit
tutorials_dotfiles_.screenrc_jwodder.txt · Last modified: 2021/03/24 00:57 by hc9