SAVE COLOR

From Recital Documentation Wiki
Jump to: navigation, search

Purpose

Save current color scheme


Syntax

SAVE COLOR TO <memvar> | FILE <.col filename>


See Also

@...FILL, @...GET, @...TO, ISCOLOR(), RESTORE COLOR, SET COLOR, SETCOLOR()


Description

The SAVE COLOR TO command saves the current color scheme to a memory variable or a file. When Recital Terminal Developer is activated from the operating system prompt, the colors are set from a system wide color file, called default.col, stored in the software root directory. Also, a local default.col file can be created in your current directory to be called after the system file. These files can be changed with the SAVE COLOR TO FILE and SET COLOR SCHEME TO commands.

TO <memvar>

The TO <memvar> clause can be used to save the color scheme to a memory variable. This variable can be restored with the RESTORE COLOR FROM <memvar> command.

TO FILE <.col filename>

The TO FILE <.col filename> clause can be used to save the color scheme to a color file. This file can be restored with the RESTORE COLOR TO FILE <.col filename> command. The filename can be substituted with an <expC>, enclosed in round brackets, which returns a valid filename. If no file extension is specified, '.col' is used.


Example

save color to m_old_color
set color
restore color from m->m_old_color
save color to file payroll.col


Products

Recital