set_alarm [ -b number ] [ -f number ] [ -d duration ]
get_alarm
ring_alarm
This command is available with the SunView User's software installation option. Refer to [a manual with the abbreviation INSTALL] for more information on how to install optional software.
set_alarm sets the WINDOW_ALARM environment variable according to the options specified.
get_alarm returns the setting of WINDOW_ALARM in the form:
WINDOW_ALARM=setting
ring_alarm performs the actual beeping and flashing of the alarm. Note: the occurrence of the alarm is controlled by the SunView/Visible_Bell and SunView/Audible_Bell settings in defaultsedit.1 If either of these is disabled, the respective feature of the alarm will not occur, regardless of how it is specified by WINDOW_ALARM.
In the C shell, set_alarm echoes the following command to set the WINDOW_ALARM environment variable:
set noglob;setenv WINDOW_ALARM setting;unset noglob;
In the Bourne shell, set_alarm echos the following:
export WINDOW_ALARM;WINDOW_ALARM=setting;
Consequently, set_alarm is should be used as follows:
eval `set_alarm [options]`
The SunView programmable alarms use the WINDOW_ALARM environment variable to define the characteristics of the alarm. The variable is set with a string argument of the following form:
:beeps=b:flashes=f:dur=t:
[a manual with the abbreviation SVBG]
The user must be running SunView in order to ring the alarm; consequently, the alarms cannot be used with Open Windows.
Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97