gra_command

Format:
int gra_command( char $*$command_string)
Description:
Executes a SPECTRA command (Fortran: gra_spectra()).

SPECTRA generates an error message, if the last character of the command is a minus sign (continuation of the command line). However, it is possible that the input consists of several commands terminated by separators (the default separator is the semicolon).

Example:

func() 
{  
  if( !gra_command( "read bpu1"))   
    {
      printf("ERROR..."); 
    }  
  gra_command( "change bpu1"); 
  ...
  gra_command( "display/graphic");
  ...
  gra_command( "cursor bpu1");
  ... 
  gra_command( "post");  
  ...
}