WSELECT(3W)
Series 300 and 500 Only
NAME
wselect − attach a keyboard to the specified window
SYNOPSIS
int wselect(fd,value);
int fd;
int value;
DESCRIPTION
fd is an integer file descriptor for an opened window type device interface.
value is the set/interrogation parameter; the following values are valid for this parameter:
-1 returns 0 if a keyboard is not attached to this window, otherwise it returns a 1 if a keyboard is attached.
0 the keyboard is detached from this window. The keyboard is then automatically attached to the topmost window unless the window specified is the topmost window. In this case the keyboard is attached to the next window down in the stack. If there is only one window the keyboard remains attached to it.
1 the keyboard is attached to the specified window. This has the side effect of detaching the keyboard from its current window.
DISCUSSION
This call inquires or sets whether the keyboard is attached to this window device.
There can only be one window at a time connected to the keyboard.
The window attached to the keyboard is also the window that is currently subject to manipulation by the interactive human interface.
SEE ALSO
wautoselect(3WS), wshuffle(3W).
DIAGNOSTICS
A return of -1 indicates failure; otherwise 0 or 1 is returned. See errno(2) for further information.
Hewlett-Packard Company — May 11, 2021