Post details: screenrc

22 September, 2006

Permalink 10:51 UTC, by Damien Krotkine Email , 158 words, 4720 views   English (US)
Categories: Gentoo, Personal

screenrc

Today I decided to rewrite some of my config files. I started with ~/.screenrc. It's amazing the cool things you can do in that file :)

Here are some of the options I use. One of them is rather useful : replacing the main screen key : instead of 'ctrl-A', I changed it to 'ctrl-O'. That's because 'ctrl-A' is binded in many applications (emacs, *sh, other editors, links...), and it clashes a lot with the badly chosen default screen key 'ctrl-A'.

The other nifty option sets the caption of the bottom line : it displays all the windows with their number and title, the current one being highlighted in white on blue. And some status information are padded to the right of the screen.


# ~/.screenrc
# use visual bell
vbell on
# replace ctrl-A by ctrl-O
escape ^Oo
# set a big scrolling buffer
defscrollback 5000
# Set the caption on the bottom line
caption always "%{= kw}%-w%{= BW}%n %t%{-}%+w %-= @%H - %LD %d %LM - %c"

Comments:

Comment from: Joshua Nichols [Member] Email
Nice tip. Perhaps you could submit it to the GWN for its tips and tricks section?
PermalinkPermalink 22 September, 2006 @ 13:30
Comment from: Herval [Visitor] Email
Wow, very useful the caption configuration, thank you.
PermalinkPermalink 23 September, 2006 @ 03:00
Comment from: Kim [Visitor] Email
@n-s - lördag 30 september - 0:27

As you can (perhaps) see, my date shows up wrong. It should be 'Lördag' since it's in Swedish. How can I fix that?
PermalinkPermalink 29 September, 2006 @ 22:27
Comment from: Damien Krotkine [Member] Email · http://www.damz.net
it's probably because you have utf8 setup but your terminal doesn't understand utf8
PermalinkPermalink 4 October, 2006 @ 14:15
Comment from: Kim [Visitor] Email
Most likely.
No clues on how I make gnome-terminal run with utf8?
PermalinkPermalink 5 October, 2006 @ 04:28
Comment from: Nathan Collins [Visitor] Email
I googled for "screenrc". What I wanted to do is change the escape sequence (although C-o also isn't good, because it's open-line in emacs) and increase the size of the scrollback buffer. In addition to those you also have the caption which, although I hadn't imagined it, sounds like a great idea. You rock :)
PermalinkPermalink 7 December, 2007 @ 01:24

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
(Line breaks become <br />)
(Set cookies for name, email and url)
(Allow users to contact you through a message form (your email will NOT be displayed.))

Damien Krotkine

August 2008
Mon Tue Wed Thu Fri Sat Sun
<< <     
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Search

Categories

Misc

XML Feeds

What is RSS?

Who's Online?

  • Guest Users: 47

powered by
b2evolution