A word from our sponsors

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
sw:screen:intro [2016/10/12 14:44] Frank Fegertsw:screen:intro [2017/08/29 19:43] (current) Frank Fegert
Line 24: Line 24:
  
 ^ File                  ^ Description                                                       ^ ^ File                  ^ Description                                                       ^
 +| ''$SYSSCREENRC''      | System-wide screen configuration for all users on the system.     |
 | ''/etc/screenrc''     | System-wide screen configuration for all users on the system.     | | ''/etc/screenrc''     | System-wide screen configuration for all users on the system.     |
 +| ''$SCREENRC''         | User-specific screen configuration.                               |
 | ''$HOME/.screenrc''   | User-specific screen configuration.                               | | ''$HOME/.screenrc''   | User-specific screen configuration.                               |
  
Line 48: Line 50:
 ====== Configuration ====== ====== Configuration ======
  
-FIXME+General configuration: 
 + 
 +<code bash> 
 +autodetach on           # Detach upon hangup, keep programs in screen(s) 
 +                        # running: Default: on 
 +bell_msg 'Update in window %n' # Message shown for a bell in a non-active window 
 + 
 +# Always show a caption. Default: splitonly 
 +# Format: 
 +#  - The background color is black. 
 +#  - On the left side, show the hostname enclosed in "[" and "]" in a 
 +#    green color. 
 +#  - On the right side, show the date in a blue color and the time in 
 +#    a white color together enclosed in "[" and "]"
 +#  - In the middle show the window list. The active window name in a 
 +#    white color and enclosed in red "(" and ")". The inactive window 
 +#    names in a gray color. 
 +caption always '%{= kG}[%{G}%H%{g}][%=%{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%=%{g}][%{B}%Y/%m/%d %{W}%c:%s%{g}]' 
 + 
 +defmonitor off          # Do not display activity notification messages 
 +                        # for windows which are in the background. 
 +defscrollback 50000     # Keep scrollback buffer of n lines. Default: 100 
 +defutf8 on              # Set the default character encoding to UFT8 
 +hardcopydir $HOME       # Write hardcopys to the users $HOME. Default: 
 +                        # current working directory 
 +msgwait 5               # Duration a message is displayed. Default: 5 
 +shelltitle 'bash'       # Name of the title for newly created windows 
 +startup_message off     # Do not show the screens startup message 
 +vbell off               # Disable the visual bell 
 +</code> 
 + 
 +Key bindings: 
 +  * Reload the screen configuration file of the current user with <kbd>C - 'A'</kbd> <kbd>Shift - R</kbd>: 
 +<code bash> 
 +bind R eval "source $HOME/.screenrc" "echo '.screenrc reloaded!'" 
 +</code> <
  
 ====== Usage ====== ====== Usage ======
  
-FIXME+To start a new //screen// session:
  
-===== Status Check =====+<cli> 
 +user@host:~$ screen 
 +</cli>
  
-FIXME+Detach a //screen// session already running:
  
-To check the status of ////: +<cli> 
 +user@host:~$ screen -d [pid.tty.host] 
 +</cli> 
 + 
 +Reattach to a already running //screen// session:
  
 <cli> <cli>
-root@host:~$ +user@host:~$ screen -d -r [pid.tty.host]
 </cli> </cli>
  
-====== Recipies ======+===== Status Check =====
  
-FIXME+To check the status of all currently running //screen// sessions:  
 + 
 +<cli> 
 +user@host:~$ screen -list 
 +user@host:~$ screen -ls 
 +There is a screen on: 
 +    6156.pts-0.hostname     (08/04/2017 06:43:08 AM)    (Detached) 
 +1 Socket in /var/run/screen/S-root. 
 +</cli> 
 + 
 +====== Recipies ======
  
 <nspages .:recipies -subns -pagesInNs -simpleList -title -hideNoSubns -hideNoPages -textNS="" -exclude:start> <nspages .:recipies -subns -pagesInNs -simpleList -title -hideNoSubns -hideNoPages -textNS="" -exclude:start>