The SAVE.SCREEN() function saves a rectangular portion of the display screen image.
This statement can only be used with QMConsole and QMTerm sessions and with terminals that support the save and restore screen region functions (e.g. AccuTerm 5.2b upwards with terminal definitions that have the -at suffix).
SAVE.SCREEN(col, line, width, height)
The SAVE.SCREEN() function saves the data and display attributes of the screen image within the specified screen area. The value assigned to the variable set by this function can only be used by the RESTORE.SCREEN statement.
IMAGE = SAVE.SCREEN(0, 0, 80, 25)
RESTORE.SCREEN IMAGE, @TRUE
The above code fragment saves the screen image, executes the command in variable COMMAND.STRING and then restores the screen image.