Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XCKControl(3X) — AOS 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XChangeKeyboardMapping(3X)

XSetPointerMapping(3X)

XChangeKeyboardControl(3X)  —  X Version 11

NAME

XChangeKeyboardControl, XGetKeyboardControl, XAutoRepeatOn, XAutoRepeatOff, XBell, XQueryKeymap − manipulate keyboard settings

SYNTAX

XChangeKeyboardControl(display, value_mask, values)
      Display ∗display;
      unsigned long value_mask;
      XKeyboardControl ∗values;

XGetKeyboardControl(display, values_return)
      Display ∗display;
      XKeyboardState ∗values_return;

XAutoRepeatOn(display)
      Display ∗display;

XAutoRepeatOff(display)
      Display ∗display;

XBell(display, percent)
      Display ∗display;
      int percent;

XQueryKeymap(display, keys_return)
      Display ∗display;
      char keys_return[32];

ARGUMENTS

displaySpecifies the connection to the X server. 

keys_returnReturns an array of bytes that identifies which keys are pressed down.  Each bit represents one key of the keyboard. 

percentSpecifies the base volume for the bell, which can range from -100 to 100 inclusive. 

value_maskSpecifies one value for each one bit in the mask (least to most significant bit).  The values are associated with the set of keys for the previously specified keyboard. 

valuesSpecifies a pointer to the structure XKeyboardControl.

values_return
Returns the current keyboard parameter in the specified XKeyboardState structure.

DESCRIPTION

The XChangeKeyboardControl function controls the keyboard characteristics defined by the XKeyboardControl structure. .PN XChangeKeyboardControl can generate BadMatch and BadValue errors.

The XGetKeyboardControl function returns the current control values for the keyboard to the XKeyboardState structure.

The XAutoRepeatOn function turns on auto-repeat for the keyboard on the specified display.

The XAutoRepeatOff function turns off auto-repeat for the keyboard on the specified display.

The XBell function rings the bell on the keyboard on the specified display, if possible. .PN XBell can generate a BadValue error.

The XQueryKeymap function returns a bit vector for the logical state of the keyboard, where each one bit indicates that the corresponding key is currently pressed down.

DIAGNOSTICS

BadMatch Some argument or pair of arguments has the correct type and range but fails to match in some other way required by the request. 

BadValue Some numeric value falls outside the range of values accepted by the request.  Unless a specific range is specified for an argument, the full range defined by the argument’s type is accepted.  Any argument defined as a set of alternatives can generate this error. 

SEE ALSO

XChangeKeyboardMapping(3X), XSetPointerMapping(3X)
Xlib − C Language X Interface

1 March 1988

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