Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ setbutton(3) — GL1 W2.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

setbutton(3)  —  Silicon Graphics R1c

NAME

setbutton - initialize a button

SYNOPSIS

C
setbutton(b, value)
Device b;
Boolean value;

FORTRAN
subroutine setbut(b, value)
integer*2 b
logical value

Pascal
procedure setbutton(b: Device; value: Boolean);

DESCRIPTION

Setbutton is used to initialize an input device that has exactly two states and an indicator, such as an LED, which records changes of state.  If these two states are not clearly marked as on/off, this command initializes the device’s indicator to either on or off.  After that, the indicator records any change in the button’s position.  Setbutton specifies a button device b and an initial boolean value value.  If the button has clearly defined on and off states, the command is ignored.  Otherwise, the LED or some other indicator is set to value. 

SEE ALSO

setvaluator

NOTE

This command can only be used in immediate mode. 

Version 2.3  —  July 04, 1985

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026