Index Index for
Section 9
Index Alphabetical
listing for S
Bottom of page Bottom of
page

SET_CURSOR_POSITION(9r)

NAME

SET_CURSOR_POSITION - Graphics: Moves the cursor to a specified position

SYNOPSIS

#include sys/ioctl.h #include sys/workstation.h ioctl( int gfx_fd, unsigned long SET_CURSOR_POSITION, void *ws_driver_structure_pointer );

ARGUMENTS

gfx_fd Specifies the file descriptor of the graphics device-special file (by convention /dev/ws0) that the open system call returns when the server is initialized. The server uses this file descriptor in subsequent ioctl calls into the Workstation Subsystem. SET_CURSOR_POSITION Specifies the ioctl command used to access the ws_cursor_position structure in /usr/sys/include/sys/workstation.h. ws_driver_structure_pointer Specifies a pointer to the ws_cursor_position structure in /usr/sys/include/sys/workstation.h.

DESCRIPTION

The SET_CURSOR_POSITION ioctl command causes the cursor to move to the specified coordinates. The screen is specified by the screen member of the ws_cursor_position structure; the coordinates are specified by the x and y members of the ws_cursor_position structure. The structure is defined in /usr/sys/include/sys/workstation.h.

RESTRICTIONS

The graphics subsystem supports only one workstation per machine.

RETURN VALUES

If successful, the SET_CURSOR_POSITION ioctl command returns 0 (zero). If unsuccessful, it returns -1.

FILES

/usr/sys/include/sys/ioctl.h /usr/sys/include/sys/workstation.h

SEE ALSO

ioctl Commands: CURSOR_ON_OFF(9r), GET_DEPTH_INFO(9r), MAP_SCREEN_AT_DEPTH(9r), VIDEO_ON_OFF(9r)

Index Index for
Section 9
Index Alphabetical
listing for S
Top of page Top of
page