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

endwin isendwin

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

The endwin and isendwin routines are used to restore the initial terminal environment.

Syntax

   #include <curses.h>



   int endwin();

   int isendwin();

Return Values

OK

Successful completion.

ERR

An error occurred.

Description

The endwin() routine restores tty modes, resets the terminal, and moves the cursor to the lower-left corner of the screen. This routine should be called before exiting or escaping CURSES temporarily. To resume CURSES after a temporary escape, call the wrefresh() or doupdate() routines.

If the program interacts with multiple terminals, call endwin() for each terminal.

The isendwin() routine returns TRUE if endwin() has been called without subsequent calls to wrefresh() and returns FALSE otherwise.

Implementation Considerations

The endwin() routine is identical to XPG/3. The isendwin() routine is a UNIX System V implementation.

See Also

doupdate(), wrefresh()

Portability

The endwin() routine conforms to HP-UX, UNIX System V, and XPG/3. The isendwin() routine conforms to UNIX System V.

Feedback to webmaster