Echos single-byte character and rendition to a window and refreshes the window.
Curses Library (libcurses.a)
#include <curses.h>
int echochar(const chtype ch);
int wechochar(WINDOW *win,
const chtype ch);
The echochar subroutine is equivalent to a call to the addch soubroutine followed by a call to the refresh subroutine.
The wechochar subroutine is equivalent to a call to the waddch subroutine followed by a call to the wrefresh subroutine.
Upon successful completion, these subroutines return OK. Otherwise, they return ERR.
To output the character I to the stdscr at the present cursor location and to update the physical screen, do the following:
echochar('I');