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

scr_dump scr_restore

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

The scr_dump and scr_restore routines are used to write the screen contents to and from a file.

Syntax

   #include <curses.h>



   int scr_dump(char *filename);

   int scr_restore(char *filename);

Parameters

filename

A pointer to the file in which screen contents are written.

Return Values

OK

Successful completion.

ERR

An error occurred.

Description

The scr_dump() routine writes the contents of the virtual screen, curscr, to filename. The scr_restore() routine writes the contents of filename (which must have been written with scr_dump()) to curscr. The next call to doupdate() restores the screen to the way it looks in filename.

Implementation Considerations

UNIX System V implementation

See Also

wrefresh()

Portability

UNIX System V

Feedback to webmaster