[ Previous | Next | Contents | Glossary | Home | Search ]
GL3.2 for AIX: Graphics Library (GL) Technical Reference

lampoff or lampon Subroutine

Purpose

Turns the keyboard display lights off or on.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void lampoff(Int8 lamps);
void lampon(Int8 lamps);

FORTRAN Syntax

SUBROUTINE LAMPOF(lamps)
CHARACTER*1 lamps
SUBROUTINE LAMPON(lamps)
CHARACTER*1 lamps

Description

The lampon subroutine turns on any combination of the four user-controlled lamps on the keyboard. The lampoff subroutine turns them off. The four low-order bits of the lamps parameter control lamps 1 through 4.

Note: This subroutine cannot be used to add to a display list.

Parameter

lamps Indicates the mask that specifies which lamps to manipulate. If a bit is set, then the corresponding keyboard lamp is either on or off.

Implementation Specifics

This subroutine is part of GL in the AIXwindows Environment/6000 Version 1, Release 2 with AIXwindows/3D Feature.

Files

/usr/include/gl/gl.h Contains C language constant and variable type definitions for GL.
/usr/include/gl/fgl.h Contains FORTRAN constant and variable type definitions for GL.

Related Information

Turning on or off the keyboard click with the clkon or clkoff subroutine.

Ringing the keyboard bell with the ringbell subroutine.

Setting the duration of the keyboard bell sound with the setbell subroutine.

AIX Graphics Library Overview, Using the Keyboard.


[ Previous | Next | Contents | Glossary | Home | Search ]