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


addch, mvaddch, mvwaddch, waddch - add a single-byte character and rendition to a window and advance the cursor


#include <curses.h>

int addch(const chtype ch);

int mvaddch(int y, int x, const chtype ch);

int mvwaddch(WINDOW *win, int y, int x, const chtype ch);

int waddch(WINDOW *win, const chtype ch);


The addch(), mvaddch(), mvwaddch() and waddch() functions place ch into the current or specified window at the current or specified position, and then advance the window's cursor position. These functions perform wrapping. These functions perform special-character processing.


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


No errors are defined.


These functions are 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.


Rendition of Characters Placed into a Window , add_wch(), attroff(), doupdate(), <curses.h>.

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