Unix/Linux Go Back    

NetBSD 6.1.5 - man page for printw (netbsd section 3)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

CURSES_PRINT(3) 		   BSD Library Functions Manual 		  CURSES_PRINT(3)

     curses_print, printw, wprintw, mvprintw, mvwprintw, unctrl -- curses print formatted strings
     on windows routines

     Curses Library (libcurses, -lcurses)

     #include <curses.h>

     printw(const char *fmt, ...);

     wprintw(WINDOW *win, const char *fmt, ...);

     mvprintw(int y, int x, const char *fmt, ...);

     mvwprintw(WINDOW *win, int y, int x, const char *fmt, ...);

     char *
     unctrl(chtype ch);

     These functions print formatted strings on stdscr or on the specified window.

     The printw() function formats and prints its arguments on stdscr.	The behavior is deliber-
     ately similar to that of printf(3), but, notably, the return value differs.

     The wprintw() function is the same as the printw() function, excepting that the resulting
     output is printed on the window specified by win.

     The mvprintw() and mvwprintw() functions are the same as the printw() and wprintw() func-
     tions, respectively, excepting that wmove() is called to move the cursor to the position
     specified by y, x before the output is printed on the window.

     The unctrl() function returns a printable string representation of the character ch.  If ch
     is a control character then it will be converted to the form ^Y.

     Functions returning pointers will return NULL if an error is detected.  The functions that
     return an int will return one of the following values:

	   OK	The function completed successfully.

	   ERR	An error occurred in the function.

     curses_cursor(3), curses_scanw(3), printf(3)

     The NetBSD Curses library complies with the X/Open Curses specification, part of the Single
     Unix Specification.

     The Curses package appeared in 4.0BSD.

BSD					  April 6, 2011 				      BSD
Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 07:34 AM.