echochar(3curses)


echochar -- echo single-byte character and rendition to a window and refresh

Synopsis

cc [options] file -lcurses
#include <curses.h>

int echochar(const chtype ch);

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

Description

The echochar(3curses) function is equivalent to a call to addch(3curses) followed by a call to refresh(3curses).

The wechochar(3curses) function is equivalent to a call to waddch(3curses) followed by a call to wrefresh(3curses).

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

addch(3curses), doupdate(3curses), echo_wchar(3curses), curses(4)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004