02.07.2013 Views

A/UX® System Administrator's Reference Sections 1M, 7, and 8

A/UX® System Administrator's Reference Sections 1M, 7, and 8

A/UX® System Administrator's Reference Sections 1M, 7, and 8

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

console(7) console(7)<br />

(octal 027).<br />

IOCTLS<br />

The display responds to a large number of ioctls which affect<br />

its behavior in many different ways. It responds to all the ioctls<br />

defined in termio(7) in the normal manner. Since it is a streams<br />

device, all other ioctls must be called using the streams indirect<br />

ioctl call function, I STR. With this is passed a packet<br />

describing the ioctl tobe executed. This packet is of type<br />

struct strioctl <strong>and</strong> is described in sys/ stropts. h. It<br />

has 4 fields.<br />

ic cmd<br />

ic len<br />

ic timout<br />

The comm<strong>and</strong> (ioctl) requested to be executed.<br />

A pointer to any data to be read/written to by the<br />

ioctl (parameters or returned results, for example).<br />

The size of the data in bytes.<br />

A timeout (how long to wait for the ioctl to<br />

complete before returning an error); -1 means<br />

no timeout (or wait forever).<br />

If s is a data structure of type struct strioctl, then an<br />

ioctl call is made using a call of the following form.<br />

ioctl(fd, I_STR, &s)<br />

Further examples of such calls are given later in this document.<br />

Screen ioctls fall into three main areas: control of the keyboard,<br />

control of the video generation hardware, <strong>and</strong> control of the<br />

mouse. All the following ioctls, <strong>and</strong> the symbols defined with<br />

them are defined in the include file s y s / v i de 0 • h.<br />

Keyboard ioctls<br />

The keyboard operates in two modes, either as an ANSI st<strong>and</strong>ard<br />

keyboard generating characters in the normal manner, or in<br />

"raw" mode where each keystroke is generated (both up <strong>and</strong><br />

down) <strong>and</strong> passed directly without any modification.<br />

VIDEO RAW<br />

February, 1990<br />

Revision C<br />

This ioctl puts the keyboard into<br />

"raw" mode. The key codes returned<br />

are the key codes directly from the keyboard<br />

(Refer to the keyboard documentation<br />

for a list of these.) The most<br />

significant bit indicates whether the<br />

5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!