Site Tools


Differences

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

Link to this comparison view

Next revision
Previous revision
monitoring [2004-10-19 16:41]
192.168.1.192
monitoring [2021-02-19 19:58] (current)
asciiphil old revision restored (2017-12-25 01:13)
Line 1: Line 1:
-===== Monitoring Windows =====+====== Monitoring Windows ======
  
-screen can monitor your windows, either for silence or activity, notifying +''screen'' can monitor your windows, either for silence or activity, notifying 
-when the condition occurs.  Useful for all sorts of things, including+when the condition occurs.  This is useful for all sorts of things, including
 waiting for a lengthy compile to finish or watching log files. waiting for a lengthy compile to finish or watching log files.
  
-==== Basics ====+===== Basics =====
  
-Use ''C-a M'' to start monitoring a window for activity.  ''C-a _''+Use ''[[commands:monitor|C-a M]]'' to start monitoring a window for activity.  ''[[commands:silence|C-a _]]''
 monitors for 30 seconds of silence.  Using the appropriate key combination monitors for 30 seconds of silence.  Using the appropriate key combination
 a second time will turn off monitoring. a second time will turn off monitoring.
  
-==== Extras ====+===== Extras =====
  
 There are a couple of configuration commands that can be used to tweak the There are a couple of configuration commands that can be used to tweak the
-monitoring settings.  ''silencewait'' will change the number of seconds of +monitoring settings.  ''[[commands:silencewait]]'' will change the number of seconds of 
-silence that will trigger the monitor.  ''activity'' sets the message that+silence that will trigger the monitor.  ''[[commands:activity]]'' sets the message that
 screen shows when a monitored window has activity.  [//There doesn't seem screen shows when a monitored window has activity.  [//There doesn't seem
-to be a way to set the silence message.  Is this correct?// The message +to be a way to set the silence message.  Is this correct?  <PMG>//]  The message 
-uses the standard [[string escapes]], as well as replacing '^G' with an+uses the standard [[man:string escapes]], as well as replacing '^G' with an
 ASCII BEL (so the terminal will beep). ASCII BEL (so the terminal will beep).
  
Line 24: Line 24:
 way to have different timeouts for different windows. way to have different timeouts for different windows.
  
-==== Keybindings ====+===== Keybindings =====
  
-  * ''C-a M'' - Start/stop monitoring window for activity. +  * ''[[commands:monitor|C-a M]]'' - Start/stop monitoring window for activity. 
-  * ''C-a _'' - Start/stop monitoring window for inactivity.+  * ''[[commands:silence|C-a _]]'' - Start/stop monitoring window for inactivity.
  
-==== Commands ====+===== Commands =====
  
-  * ''activity //message//'' - Set message displayed by screen when a monitored window shows activity. +  * ''[[commands:activity]]'' - Set message displayed by screen when a monitored window shows activity. 
-  * ''defmonitor on|off'' - Set the default monitoring status for new windows. +  * ''[[commands:defmonitor]]'' - Set the default monitoring status for new windows. 
-  * ''defsilence on|off'' - Set the default silence monitoring status for new windows. +  * ''[[commands:defsilence]]'' - Set the default silence monitoring status for new windows. 
-  * ''monitor [on|off]'' - Set the monitoring status for the current window.  Without an argument, toggles current status+  * ''[[commands:monitor]]'' - Set the monitoring status for the current window. 
-  * ''silence [on|off|//sec//]'' - Set the silence monitoring status for the current window.  If an argument of //sec// is given, monitoring is enabled for that window and the timeout is set to that many seconds+  * ''[[commands:silence]]'' - Set the silence monitoring status for the current window. 
-  * ''silencewait //sec//'' - Set the silence timeout to //sec// seconds.+  * ''[[commands:silencewait]]'' - Set the silence timeout for all windows.
  
-==== Examples ====+===== Examples =====
  
 Change the activity message to include a timestamp and window title, as Change the activity message to include a timestamp and window title, as
 well as beep.  In practice it will read something like "12:37 activity -> well as beep.  In practice it will read something like "12:37 activity ->
-7$ zsh".+7$ zsh":
  
 <code>activity "%c activity -> %n%f %t^G"</code> <code>activity "%c activity -> %n%f %t^G"</code>
- 

User Tools