Wednesday, November 05, 2014

Add a Status line to gnuscreen

Add a Status line to gnuscreen
Add this to your .screnrc file in your home dir:

akl0mg211.airnz.co.nz /home/styled> cat .screenrc
# don't display the copyright page
startup_message off

# increase scrollback buffer size
defscrollback 100000
#Display Status
caption always "%{= kw}%-w%{= BW}%n %t%{-}%+w %-= @%H - %LD %d %LM - %c"

#More goodness
shell /bin/bash
termcapinfo xterm ti@:te@

# create windows
screen -t 901 ssh aklss901
screen -t 901 ssh aklss901
screen -t 901 ssh aklss901
screen -t 901 ssh aklss901
screen -t 904 ssh aklss901
screen -t 905 ssh aklss901
screen -t 961 ssh aklss901
screen -t 960 ssh aklss901
screen -t 839 ssh aklss901
screen -t 840 ssh aklss901
screen -t 610 ssh aklss901
screen -t ICO ssh aklss901
screen -t 901m ssh aklss901
screen -t 891 ssh aklss901
screen -t 938 ssh aklss901
screen -t 211 aklss901

Execute across all windows in gnu screen

see:
http://thegreatblogsite.blogspot.co.nz/2007/03/execute-across-all-windows-in-gnu.html


Press Ctrl-A :
The screen command window should be highlighted at the bottom.
At the ":" prompt, type
at "#" stuff "export DISPLAY=localhost:0.0\015"

the \015 enters the enter command :)

No comments: