Penguin

Differences between current version and predecessor to the previous major change of Screen.

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 15 Last edited on Wednesday, January 28, 2009 9:24:52 am by AristotlePagaltzis
Older page: version 12 Last edited on Monday, May 14, 2007 3:56:34 pm by DeanEvans Revert
@@ -11,11 +11,21 @@
 * You should really read the screen(1) ManPage -- the program is chock full of useful bits. 
 * <tt>screen -rx</tt> allows to to attach to an existing screen session, even if you are already attached to it from another terminal. 
 * If you use Ctrl-A a lot and don't like screen catching this, you can change the key used for this by adding <tt>escape ^ss</tt> or similar to <tt>~~/.screenrc</tt>. The first character, <tt>^s</tt> defines the escape char, the second character is what you press after an escape to send a literal escape sequence. 
 * The documentation is not quite clear on how to launch processes into new windows in a running [Screen] session. The <tt>-m -d</tt> switch combination advertised for launching processes in detached mode creates an entire session for each of them. If you want them running in an existing session, you have to send that session the <tt>screen</tt> command. Sending commands to a session from the [Shell] is done by invoking <tt>screen -X ''command''</tt>. Effectively, this means that you launch a batch of wget(1) downloads in a screen session by invoking <tt>screen -X screen wget ''$someurl''</tt> in a loop. 
-* If you su to a user (because you can't SSH/login as them directly, ie "I am stealing their IRC session") and then get a message like '' Cannot open your terminal '/dev/pts/7' - please check'' , you need to change the permissions on your terminal __before__ the su, so you can write to it from the new user: <tt>chmod 666 `tty`</tt>. 
+* If you su to a user (because you can't SSH/login as them directly, ie "I am stealing their IRC session") and then get a message like "<tt> Cannot open your terminal '/dev/pts/7' - please check</tt>" , you need to change the permissions on your terminal __before__ the su, so you can write to it from the new user: <tt>chmod 666 `tty`</tt>. 
 * If you would like to send commands to a screen session inside another session you can run into issues, as the first screen will capture the commands. To pass a command to the inside session first do <tt>C-a a</tt> this does a literal C-a, passing it to the inside screen session, or any other application you need to pass C-a to. IE to detach from the inside session <tt>C-a a d</tt>. 
+  
+!!hardstatus  
+This line enables you to have a constant display of what windows are open, to make switching between them faster.  
+Check the 'STRING ESCAPES' section of the screen man page for information on how to build your own one.  
+The one [BenStaz] uses can be seen below. To try it out, simply paste these lines into <tt>~~/.screenrc</tt>.  
+  
+<verbatim>  
+hardstatus alwayslastline  
+hardstatus string "%{.bW}%?%-Lw%?%{.rW}%n*%f %t%?(%u)%?%{-}%?%+Lw%? %= %D %d/%M/%Y %C:%s%a"  
+</verbatim>  
  
 ---- 
  
 Links: 
 *[Gentoo Wiki Screen Tips|http://gentoo-wiki.com/TIP_Using_screen]