screenhelp – show notes about screen.
This isn’t so much a script as it is some helpful notes on running screen.
When people are learning to use screen, it can be daunting, so I created some notes that people could use to quickly find out how to do X. Thought I’d share. :)
#!/bin/bash # 03-17-2011 Crouse ### screen - Notes on Screen. export TERM=xtermc echo "" tput bold;tput setf 2; echo " Crouse's Screen Notes" echo "http://en.gentoo-wiki.com/wiki/Screen" echo "---------------------------------------------------------------" tput sgr0;tput setf 2; echo "Type: screen to start." echo "---------------------" tput setf 6; echo "C-a c :Creates new window" echo "C-a A :Rename Window-set window title" echo "C-a S :Split Horizontal" echo "C-a V :Split Vertical" echo "C-a TAB : Move to next region on split screen" echo "C-a Q : Make Active Screen full screen" echo "C-a \" :Display Window List" echo "C-a C-a :Go to previous window" echo "C-a k :kill current window" echo "C-a d :detach from session" echo "C-a X :removes REGION (ie:a split)" echo "C-a x :locks session" echo "C-a n : move to the next region" echo "C-a p : move to the previous region" echo "C-a M : Start/Stop monitoring in tabs" echo "C-a s : xoff -stops all output to the screen (bad lol)." echo "C-a C-q : restores frozen screens--usually do do C-a s ;) lol" echo "C-a z : Starts/Stops suspend command." echo " --------------" echo "C-a : --- puts Screen into command mode(think vi)." echo "C-a :quit --- quits entire session" echo "C-a :resize 30 --- makes the current focused region 30 lines high" echo "C-a :fit --- fits screensize to new terminal size" echo "C-a :remove --removes a region -same as C-a X" echo "C-a + ----- makes current region larger" echo "C-a - ----- makres the current region smaller" echo " " echo " EMACS NOTE: C-a a (will take you back to the beginning of the line)." echo " " tput setf 2; echo "MultiUser Mode:" tput setf 6; echo "START WITH:" echo "Press Ctrl+a, then type :multiuser on and press Enter." echo "Press Ctrl+a, then type :acladd USERNAME" echo "CONNECT WITH:" echo "screen -x USERNAME/" echo "" tput bold;tput setf 7; echo "---------------------------------------------------------------" tput sgr0 echo " " exit 0 |
Here is my .screenrc file …….. just in case anyone wanted to see how I use screen.
# Screen configuration
# Make every shell a login shell
shell -$SHELL
term xterm-256color
defutf8 on
# Statusbar
hardstatus off
hardstatus alwayslastline
#hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y} %d/%m %C%a"
hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %{wb}%H %m-%d-%Y %C:%s %a"
# Scrolling in xterms
defscrollback 5000
termcapinfo xterm|xterms|xs|rxvt ti@:te@
#Turn off startup message it's annoying.
startup_message off
# Try to load profile/bashrc
# . /home/crouse/.bashrc
screen -t Window1 0
screen -t Window2 1
#screen -t Window 2
#screen -t Window 3
#screen -t Window 4
#screen -t Window 5
#screen -t Window 6
#screen -t Window 7
#screen -t Window 8

Thanks for sharing. I use screen every day, but I pretty much only know the most basic commands. This’ll help me become a master of screen and attract hot women.