Technical data

SunOS 5.5 Devices wscons(7D)
NAME wscons workstation console
SYNOPSIS #include <sys/strredir.h>
ioctl(fd, SRIOCSREDIR, target);
ioctl(fd, SRIOCISREDIR, target);
DESCRIPTION The “workstation console” is a device consisting of the combination of the workstation
keyboard and frame buffer, acting in concert to emulate anASCII terminal. It includes a
redirection facility that allows I/O issued to the workstation console to be diverted to
some other STREAMS device, so that, for example, window systems can arrange to
redirect output that would otherwise appear directly on the frame buffer, corrupting its
appearance.
Redirection The redirection facility maintains a list of devices that have been named as redirection
targets, through theSRIOCSREDIR ioctl described below. All entries but the most recent
are inactive; when the currently active entry is closed, the most recent remaining entry
becomes active. The active entry acts as a proxy for the device being redirected; it han-
dles all read(2), write(2), ioctl(2), and poll(2) calls issued against the redirectee.
The following two ioctls control the redirection facility. In both cases, fd is a descriptor
for the device being redirected (that is, the workstation console) and target is a descriptor
for a STREAMS device.
SRIOCSREDIR Make target be the source and destination of I/O ostensibly directed to
the device denoted by fd.
SRIOCISREDIR Returns 1 if target names the device currently acting as proxy for the
device denoted by fd, and 0 if it is not.
SPARC: ANSI
STANDARD
TERMINAL
EMULATION
On SPARC systems, thePROM monitor emulates anANSI X3.64 terminal.
Note: theVT100 also follows the ANSI X3.64 standard but both the Sun and the VT100
have nonstandard extensionsto the ANSI X3.64 standard. The Sun terminal emulator and
the VT100 are not compatible in any true sense.
The Sun console displays 34 lines of 80 ASCII characters per line, with scrolling, (x, y) cur-
sor addressability, and a number of other control functions.
While the display size is usually 34 by 80, there are instances where it may be a different
size.
If the display device is not large enough to display 34 linesof text.
If either screen-#rows or screen-#columns is set by the user to a value other than the
default of 34 or 80 respectively. screen-#rows and screen-#columns are fields stored
in NVRAM/EEPROM, see eeprom(1M).
modified 11 Nov 1993 7D-399