Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

curses_echochar(3) [netbsd man page]

CURSES_ECHOCHAR(3)					   BSD Library Functions Manual 					CURSES_ECHOCHAR(3)

NAME
curses_echochar, echochar, wechochar, pechochar -- curses add characters and then refresh routines LIBRARY
Curses Library (libcurses, -lcurses) SYNOPSIS
#include <curses.h> int echochar(const chtype ch); int wechochar(WINDOW *win, const chtype ch); int pechochar(WINDOW *pad, const chtype ch); DESCRIPTION
These functions add characters to stdscr or to the specified window or pad and then cause an immediate refresh() of that window or pad. The echochar() function adds the character given in ch to stdscr at the current cursor position and advances the current cursor position by one. Any character attributes set in ch will be merged with the background attributes currently set on stdscr. stdscr is then refreshed. Calling echochar() is equivalent to calling addch() followed by refresh(). The wechochar() function is the same as the echochar() function, excepting that the character is added to the window specified by win and win is refreshed. The pechochar() function is the similar to the echochar() function, excepting that the character is added to the pad specified by pad and pad is refreshed at its previous location on the screen. Calling pechochar() is equivalent to calling addch() followed by prefresh(). RETURN VALUES
These functions will return one of the following values: OK The function completed successfully. ERR An error occurred in the function. SEE ALSO
curses_addch(3), curses_attributes(3), curses_pad(3), curses_refresh(3) STANDARDS
The echochar(), wechochar(), and pechochar() functions comply with the X/Open Curses specification, part of the Single Unix Specification. HISTORY
The Curses package appeared in 4.0BSD. BSD
March 27, 2004 BSD

Check Out this Related Man Page

echochar(3XCURSES)					  X/Open Curses Library Functions					echochar(3XCURSES)

NAME
echochar, wechochar - add a single-byte character and refresh window SYNOPSIS
cc [ flag... ] file... -I /usr/xpg4/include -L /usr/xpg4/lib -R /usr/xpg4/lib -lcurses [ library... ] c89 [ flag... ] file... -lcurses [ library... ] #include <curses.h> int echochar(const chtype ch); int wechochar(WINDOW *win, const chtype ch); DESCRIPTION
The echochar() function produces the same effect as calling addch(3XCURSES) and then refresh(3XCURSES). The wechochar() function produces the same effect as calling waddch(3XCURSES) and then wrefresh(3XCURSES). PARAMETERS
ch Is a pointer to the character to be written to the window. win Is a pointer to the window in which the character is to be added. RETURN VALUES
On success, these functions return OK. Otherwise, they return ERR. ERRORS
None. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |Unsafe | +-----------------------------+-----------------------------+ SEE ALSO
addch(3XCURSES), doupdate(3XCURSES), echo_wchar(3XCURSES), libcurses(3XCURSES), attributes(5), standards(5) SunOS 5.10 5 Jun 2002 echochar(3XCURSES)
Man Page