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

printw wprintw mvprintw mvwprintw vwprintw

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

The printw set of routines is used to perform a formatted write to a window.

Syntax

   #include <curses.h>



   int printw(char *fmt [,arg...]);

   int wprintw(WINDOW *win, char *fmt[,arg...]);



   int mvprintw(int y, int x, char *fmt [,arg...]);

   int mvwprintw(WINDOW *win, int y, int x, char *fmt [,arg...])



   #include <stdargs.h>



   vwprintw(WINDOW *win, char *fmt, va_list arglist);

Parameters

fmt [,arg...]

A printf() format string where arg is zero or more arguments used to satisfy the printf() string.

fmt, arglist

A vprintf() format string where arglist is a pointer to a list of arguments.

win

A pointer to the window in which the string is to be written.

x

The x (column) coordinate position of the string's placement in the window.

y

The y (row) coordinate position of the string's placement in the window.

Return Values

OK

Successful completion.

ERR

An error occurred.

Description

These routines are functionally equivalent to printf(). Characters are written to the window using waddch().

With printw() and wprintw(), the characters are written to stdscr and win, respectively. The mvprintw() and mvwprintw() routines position the cursor as specified in stdscr or win, respectively, and then call printw(). The vwprintw() routine writes to the window.

Implementation Considerations

The printw(), wprintw(), mvprintw(), and mvwprintw() routines are identical to XPG/3. The vwprintw() routine is a UNIX System V implementation.

See Also

waddch()

Portability

The printw(), wprintw(), mvprintw(), and mvwprintw() routines conform to HP-UX, UNIX System V and XPG/3. The vwprintw() routine conforms to UNIX System V.

Feedback to webmaster