HPlogo MPE/iX Developer's Kit Reference Manual Volume 2: HP 3000 MPE/iX Computer Systems > Chapter 4 CURSES

echo noecho

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

The echo and noecho routines are used to enable and disable terminal echo.

Syntax

   #include <curses.h>



   int echo();

   int noecho();

Return Values

OK

Successful completion.

ERR

An error occurred.

Description

The echo() and noecho() routines enable and disable the terminal echo, respectively. When enabled, characters received by getch() 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.

NOTE: The tty driver echo is disabled by initscr() and newterm(). All echoing is controlled by CURSES.

Implementation Considerations

Identical to XPG/3

See Also

wgetch(), wgetstr(), wscanw()

Portability

HP-UX, UNIX System V, XPG/3

Feedback to webmaster