Screen: Difference between revisions

From Leo's Notes
This page was last edited on 4 March 2014, at 22:38.
No edit summary
No edit summary
Line 10: Line 10:
vbell off # Turns visual bell off
vbell off # Turns visual bell off
</syntaxhighlight>
</syntaxhighlight>
== Force Background Redraw ==
Screen will sometimes mess with any background colors set by programs such as vim. This will cause weird visuals in the terminal where background colors are only rendered where there is text.
You can force screen to redraw the entire area such that the background colors are preserved by putting the following in your <code>.screenrc</code> file:
defbce on


== Scrollback Buffer ==
== Scrollback Buffer ==

Revision as of 22:38, 4 March 2014

Disable Visual Bell

To disable the visual bell for the current screen instance, hit:

CTRL+A, CTRL+G

For a permanent fix, put the following into the ~/.screenrc file

vbell_msg "bell: window ~%" # Message for visual bell
vbellwait 2 # Seconds to pause the screen for visual bell
vbell off # Turns visual bell off

Force Background Redraw

Screen will sometimes mess with any background colors set by programs such as vim. This will cause weird visuals in the terminal where background colors are only rendered where there is text.

You can force screen to redraw the entire area such that the background colors are preserved by putting the following in your .screenrc file:

defbce on

Scrollback Buffer

.screenrc

defscrollback 5000


C-a [


h - Move the cursor left by one character j - Move the cursor down by one line k - Move the cursor up by one line l - Move the cursor right by one character 0 - Move to the beginning of the current line $ - Move to the end of the current line. G - Moves to the specified line

      (defaults to the end of the buffer).

C-u - Scrolls a half page up. C-b - Scrolls a full page up. C-d - Scrolls a half page down. C-f - Scrolls the full page down.



/ - Search forward ? - Search backward

Rename Screen Session

C-a :sessionname mySessionName