Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mvwprintw(3) — OSF/1 1.0 (TIN) MIPS

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

addstr(3)

printf(3)

waddstr(3)

printw(3)  —  Subroutines

Digital

NAME

printw, mvprintw, mvwprintw, wprintw − formatted write to a window

SYNOPSIS

#include <curses.h>

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

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

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

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

DESCRIPTION

The printw routine adds a string to the default window starting at the current cursor position.  This routine causes the string that would normally be output by printf to be output by addstr. 

The routine wprintw adds a string to the specified window starting at the current cursor position.  This routine causes the string that would normally be output by printf to be output by waddstr. 

The routine mvprintw adds a string to the default window starting at the specified cursor position.  This routine causes the string that would normally be output by printf to be output by addstr. 

The routine mvwprintw adds a string to the specified window starting at the specified cursor position.  This routine causes the string that would normally be output by printf to be output by waddstr. 

All these routines are analogous to printf.  It is advisable to use the field width options of printf to avoid leaving unwanted characters on the screen from earlier calls. 

RETURN VALUES

The printw, mvprintw, mvwprintw, and wprintw functions return OK on success and ERR on error. 

RELATED INFORMATION

addstr(3), printf(3), waddstr(3)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026