echo(3XC)
NAME
echo, noecho − enable/disable terminal echo
SYNOPSIS
#include <curses.h>
int echo(void);
int noecho(void);
DESCRIPTION
The echo() and noecho() functions enable and disable terminal echo, respectively. When enabled, characters received by getch(3XC) are echoed back to the terminal. When disabled, characters are transferred to the program without echoing them to the terminal display. The program may instead echo the characters to an area of the screen controlled by the program or may not echo the characters at all. Terminal echo is enabled, by default.
Subsequent calls to echo() or noecho() do not flush type-ahead.
The tty driver echo is disabled by initscr(3XC) and newterm(3XC). All echoing is controlled by X/Open Curses.
RETURN VALUES
On success, these functions return OK. Otherwise, they return ERR.
ERRORS
None.
SEE ALSO
getch(3XC), getstr(3XC), initscr(3XC), scanw(3XC)
SunOS 5.6 — Last change: 1 Jun 1996