
------------------------------------------------------------------------------
1.13 Enable or disable graphic display. <Main,Alarm>
------------------------------------------------------------------------------
[Name]
crt_graphic
[Syntax]
#include <crt.h>
int crt_graphic( int mode ) ;
[Arguments]
mode Specify graphic output ON or OFF.
[Return]
Returns zero if successful and returns non zero if any error (graphic
function is not ready for use).
[Description]
Specify whether to display graphics on the CRT or not (GRAPHIC BEAM
ON or OFF).
One of the following should be specified for the "mode".
CRT_ON_BEAM Enable graphic display on the CRT.
CRT_OFF_BEAM Disable graphic display on the CRT.
This function controls whether the graphics drawn by the user
application program is displayed on the CRT or not , and has no effect
on the display of characters, while BEAM ON/OFF command by using the
escape sequences, "ESC [>9l"/"ESC [>9h", affects both graphics and
characters.
Graphics can be drawn even while the display of the graphics to the
CRT is disabled.
The default state of the "GRAPHIC BEAM" right after the graphic screen
is initialized (i.e. when returned from the "_setvideomode" function)
is "ON".
Screen switching from the user screen to the CNC screen automatically
turns the "GRAPHIC BEAM" off. After switching the screen to the user's
again, turn the "GRAPHIC BEAM" on by this function to get graphic
display on the CRT.