The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group


pechochar, pecho_wchar - write a character and rendition and immediately refresh the pad


#include <curses.h>

int pechochar(WINDOW *pad, chtype ch);

int pecho_wchar(WINDOW *pad, const cchar_t *wch);


The pechochar() and pecho_wchar() functions output one character to a pad and immediately refresh the pad. They are equivalent to a call to waddch() or wadd_wch(), respectively, followed by a call to prefresh(). The last location of the pad on the screen is reused for the arguments to prefresh().


Upon successful completion, these functions return OK. Otherwise, they return ERR.


No errors are defined.


The pechochar() function is only guaranteed to operate reliably on character sets in which each character fits into a single byte, whose attributes can be expressed using only constants with the A_ prefix.


echochar(), newpad(), <curses.h>.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]