Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- GetIt Reference Guide - syntax: n_saveattr() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Syntax: N_SAVEATTR()

Saves screen attributes to a memory variable.

Example

* F1 help procedure
PROCEDURE help
attr=N_SAVEATTR()                  && save attributes
SET COLOR TO g+/r
SET CURSOR OFF
@ 23,0 SAY "HELP NOT AVAILABLE YET"
N_RESTATTR(attr)                   && restore attributes
RETURN

Notes

N_SAVEATTR stores the current screen's attributes to a memory variable which
can later be restored with N_RESTATTR.

N_SAVEATTR can be used on its own or in combination with Clipper's `SAVE
SCREEN' command.  The Clipper command saves the screen's contents, while
N_SAVEATTR saves the screen's attributes, including: all colors; cursor
location, size and visibility; intensity; scoreboard; delimiters; and bell.

See Also: N_RESTATTR

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson