Next: TYPE
Up: SIC Language Internal Help
Previous: SYSTEM
Contents
Index
TIMER
[SIC\]TIMER
[SIC\]TIMER ON|OFF
[SIC\]TIMER [Time [Unit]] [/COMMAND String]
All Gildas programs are automatically closed (normal exit) after a de-
fined period of inactivity at the prompt level. This period is defined
by the Sic timer. The timer starts as soon as the program prompt is
available (i.e. inactivity). The timer is stopped when a command starts
running. It restarts from the beginning when the prompt is back.
Without argument, display the timer status.
With the keyword ON or OFF as argument, enable or disable the timer. The
timer is enabled by default.
With a Time argument, set the timer to the input value. Unit is a key-
word which can be HOURS, MINUTES, or SECONDS (default HOURS). Default
value at startup is 3 hours.
The command executed once the timer is done can be customized with the
option /COMMAND. The command string must be a single argument, possibly
double-quoted if blanks are needed, e.g.
SIC> TIMER /COMMAND EXIT
SIC> TIMER /COMMAND "EXAMINE PI"
SIC> TIMER /COMMAND "SAY ""Hello from timer"""
Default command at startup is EXIT.
The timer duration can be customized in a Sic logical named SIC_TIMER
(integer value, in hour unit). This value is evaluated once at startup
from one of the Sic logical dictionaries. Later changes are ignored. De-
fault is 3 hours.
Gildas manager
2024-03-29