DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

addch(3curses)


addch -- add a single-byte character and rendition to a window and advance the cursor

Synopsis

cc [options] file -lcurses
#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);

Description

The addch(3curses), mvaddch(3curses), mvwaddch(3curses) and waddch(3curses) 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.

Return value

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

Errors

No errors are defined.

Usage

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.

Standards Conformance

The Single UNIX Specification, Version 2; The Open Group.

References

``Rendition of Characters Placed into a Window'', add_wch(3curses), attroff(3curses), doupdate(3curses), curses(4)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004