Friday, April 26, 2013

Ubuntu Screen Configuration

As we all know Screen is an excellent program. Here is how my ~/.screenrc looks like

   vbell off
   defscrollback 10000
   hardstatus on
   hardstatus alwayslastline "%{wk}%-w%{kw}%n %t%{-}%+w %=%{Gk} %H %{Wk} %d-%M-%Y %C:%s %a %D "
   termcapinfo xterm ti@:te@
   startup_message off
   msgwait 1
   altscreen on
   escape ``
   bind c screen 1
   bind ^c screen 1
   bind 0 select 10
   screen 1

And this is how it looks in action

  1. blockquote (the key right above Tab key) will be the command character
  2. As you see in the image, the screen numbers will begin with 1
  3. The bottom bar shows list of open terminals, machine name, date, time, weekday
  4. `+c will create a new terminal
  5. `+1,`+2,`+3,... will switch to the respective terminals

No comments: