1 .\"***************************************************************************
2 .\" Copyright (c) 1998,2000 Free Software Foundation, Inc. *
4 .\" Permission is hereby granted, free of charge, to any person obtaining a *
5 .\" copy of this software and associated documentation files (the *
6 .\" "Software"), to deal in the Software without restriction, including *
7 .\" without limitation the rights to use, copy, modify, merge, publish, *
8 .\" distribute, distribute with modifications, sublicense, and/or sell *
9 .\" copies of the Software, and to permit persons to whom the Software is *
10 .\" furnished to do so, subject to the following conditions: *
12 .\" The above copyright notice and this permission notice shall be included *
13 .\" in all copies or substantial portions of the Software. *
15 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
16 .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
17 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
18 .\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
19 .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
20 .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
21 .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23 .\" Except as contained in this notice, the name(s) of the above copyright *
24 .\" holders shall not be used in advertising or otherwise to promote the *
25 .\" sale, use or other dealings in this Software without prior written *
27 .\"***************************************************************************
29 .\" $Id: curs_printw.3x,v 1.13 2002/11/16 22:28:57 tom Exp $
30 .\" $DragonFly: src/lib/libncurses/man/curs_printw.3,v 1.1 2005/03/12 19:13:54 eirikn Exp $
37 \fBvwprintw\fR, \fBvw_printw\fR - print formatted output in \fBcurses\fR windows
39 \fB#include <curses.h>\fR
41 \fBint printw(const char *fmt, ...);\fR
43 \fBint wprintw(WINDOW *win, const char *fmt, ...);\fR
45 \fBint mvprintw(int y, int x, const char *fmt, ...);\fR
47 \fBint mvwprintw(WINDOW *win, int y, int x, const char *fmt, ...);\fR
49 \fBint vwprintw(WINDOW *win, const char *fmt, va_list varglist);\fR
51 \fBint vw_printw(WINDOW *win, const char *fmt, va_list varglist);\fR
54 The \fBprintw\fR, \fBwprintw\fR, \fBmvprintw\fR and \fBmvwprintw\fR
55 routines are analogous to \fBprintf\fR [see \fBprintf\fR(3S)]. In
56 effect, the string that would be output by \fBprintf\fR is output
57 instead as though \fBwaddstr\fR were used on the given window.
59 The \fBvwprintw\fR and \fBwv_printw\fR routines are analogous
60 to \fBvprintf\fR [see \fBprintf\fR(3S)]
61 and perform a \fBwprintw\fR using a variable argument list.
62 The third argument is a \fBva_list\fR, a pointer to a
63 list of arguments, as defined in \fB<stdarg.h>\fR.
65 Routines that return an integer return \fBERR\fR upon failure and \fBOK\fR
66 (SVr4 only specifies "an integer value other than \fBERR\fR") upon successful
69 The XSI Curses standard, Issue 4 describes these functions. The function
70 \fBvwprintw\fR is marked TO BE WITHDRAWN, and is to be replaced by a function
71 \fBvw_printw\fR using the \fB<stdarg.h>\fR interface.
72 The Single Unix Specification, Version 2 states that
73 \fBvw_printw\fR is preferred to \fBvwprintw\fR since the latter requires
74 including \fB<varargs.h>\fR, which
75 cannot be used in the same file as \fB<stdarg.h>\fR.
76 This implementation uses \fB<stdarg.h>\fR for both, because that header
77 is included in \fB<curses.h\fR>.
79 \fBcurses\fR(3X), \fBprintf\fR(3S), \fBvprintf(3S)\fR
81 .\"# The following sets edit modes for GNU EMACS