User Tools

Site Tools


docs:tips_n_tricks:screen.html

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
docs:tips_n_tricks:screen.html [13.07.2022 00:38 CEST] – [sample .screenrc file] peterdocs:tips_n_tricks:screen.html [16.03.2024 00:38 CET] (current) – [Logging and reading logs] peter
Line 117: Line 117:
  
 defscrollback 500 defscrollback 500
 +
 +# make $HOME the base for all relative paths
 +chdir
  
 caption always caption always
Line 122: Line 125:
 # # hardware status line text # # hardware status line text
 # caption string "%?%F%{.c.}%?%3n %t%? [%h]%?" # caption string "%?%F%{.c.}%?%3n %t%? [%h]%?"
-# windowlist string  "%3n %t %?[%h]%?" 
  
-# show window title if set,  +# show window title if set, else hardware status line text 
-else hardware status line text +windowlist string "%3n %?[%h]%:%t%?
-windowlist string "%3n %?[%h]%:%t%?"+# windowlist title "Num Name|HW Status" 
 +# # show window title and hardware status line text if set 
 +# windowlist string "%3n %t %?[%h]%?" 
 +# windowlist title "Num Name [HW Status]" 
 +# # Use approximately original windowlist string appended by hardware statusline if set 
 +windowlist string "%3n %t%=%?[%h]    %:%?%f " 
 +windowlist title "Num Name%=[HW Status] Flags"
 # # show clock in caption line # # show clock in caption line
 # caption    string "%?%F%{.b.}%H: %?%3n%? [%h]%: %t%?%=| %c:%s " # caption    string "%?%F%{.b.}%H: %?%3n%? [%h]%: %t%?%=| %c:%s "
Line 136: Line 144:
 msgminwait 0 msgminwait 0
  
-logfile screen.%S.%n.%Y-%m-%d.%0c.log+logfile .screenlog/screen.%S.%n.%Y-%m-%d.%0c.log
  
 zombie xr onerror zombie xr onerror
Line 145: Line 153:
 <code screenrc .screenrc> <code screenrc .screenrc>
 : :
-logfile ~/screenlog/screen.%S.%n.%Y-%m-%d.%0c.log+chdir 
 +logfile screenlog/screen.%S.%n.%Y-%m-%d.%0c.log
 : :
 </code> </code>
Line 153: Line 162:
 __References__: __References__:
   * [[https://superuser.com/questions/236930/how-to-clean-up-output-of-linux-script-command|How to clean up output of linux 'script' command]]   * [[https://superuser.com/questions/236930/how-to-clean-up-output-of-linux-script-command|How to clean up output of linux 'script' command]]
 +===== Starting root shell in new screen with non-default shell =====
 +
 +  screen -t root sudo ZDOTDIR=$HOME -i /bin/zsh -
 +
 +  screen -t root sudo su - -c "ZDOTDIR=$HOME exec zsh"
docs/tips_n_tricks/screen.html.1657665526.txt.gz · Last modified: 13.07.2022 00:38 CEST by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki