HPlogo MPE/iX Developer's Kit Reference Manual Volume 2: HP 3000 MPE/iX Computer Systems > Chapter 4 CURSES

tgoto

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

The tgoto routine is used to decode the cursor motion values (interface to termcap library).

Syntax

   #include <curses.h>



   char *tgoto (char *cap, int col, int row);

Parameters

cap

The pointer to the termcap capability for cursor motion.

col

The column placement of the new cursor.

row

The row placement of the new cursor.

Return Values

On success, a pointer to the decoded cursor addressing string is returned; otherwise, a null pointer is returned.

Description

The tgoto() routine decodes cursor values returned from tgetstr(). A pointer to a cursor addressing string is returned that, when sent to the terminal with tputs(), moves the cursor to the new location.

The tgoto() routine is included for compatibility purposes with programs that use the termcap library. New programs should use terminfo routines.

Implementation Considerations

UNIX System V implementation

See Also

mvcur()

Portability

HP-UX, UNIX System V

Feedback to webmaster