01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

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.

TAM (3T)<br />

wgetpos()<br />

kcodemap()<br />

wgetc()<br />

keypad()<br />

(AT&T UNIX PC only ) TAM(3T)<br />

Gets the current position (row, column) of the cursor<br />

in the specified window ( wn ). Arguments are<br />

wn and the pointers to the row, column position<br />

of the cursor.<br />

When passed an 8-bit value, kcodemap() returns a<br />

pointer to the 7-bit escape sequence that maps<br />

into that value.<br />

Gets a single character from the specified window<br />

( wn ). Wgetc(} is the window equivalent of<br />

get char(). The input stream from any keyboard is<br />

translated into UNIX PC keyboard equivalents.<br />

Determines how function keys are returned in a<br />

wget(} call. There are three states:<br />

flag=O sets the 7-bit mode.<br />

Function keys return escape sequences for a<br />

wgetc() call.<br />

flag= I sets the 8-bit mode.<br />

Function keys return a single 8-bit character.<br />

flag=2 sets the non-mapped mode.<br />

Function keys return the code(s) generated by the<br />

terminal used.<br />

wsetmouse() Sets up the parameters associated with the mouse.<br />

Wsetmouse() also takes a pointer to an umdata<br />

structure, which determines the report conditions<br />

for mouse motion and/or button changes. (See the<br />

discussion in the window(7) manual page about<br />

the umdata structure for specific usage.)<br />

wreadmouse() Gets the mouse state, including the coordinates of<br />

the mouse cursor and whether each of the three<br />

mouse buttons is up or down. For a detailed<br />

description of this information, see window(7).<br />

The information is read from the input stream, so<br />

this routine should be called only after a mouse<br />

code is returned by wgetc(}. The structure is<br />

defined in sys/mouse.h.<br />

wprexec() This is called by the child process after a fork(}<br />

and before an exec() to perform the appropriate<br />

actions for passing a window to a child process.<br />

"Appropriate action" varies from the bit map<br />

screen to the remote terminal. On the bit map,<br />

wprexec(} creates a new window and passes it as<br />

stdin , stdout, and stderr. On remote terminals,<br />

wprexec(} prepares the screen to be taken over by<br />

the child by flushing output and resetting tty<br />

modes.<br />

- 7-

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

Saved successfully!

Ooh no, something went wrong!