class grace_process : ?debug:bool -> unit -> object .. end
Fundamental class associated with a single xmgrace process.
new grace_process () creates a new Grace viewport. The optional
debug argument, with default false, causes all Grace commands
to be echoed to stderr.
val channel : Pervasives.out_channel
The communication channel that sends data to xmgrace.
method send : string -> unit
gp#send s sends command string s to the xmgrace process
associated with grace_process gp. The command does not need
to be newline-terminated. Command strings are buffered, and
may not be executed immediately; use the flush method to
cause immediate execution.
method flush : unit -> unit
gp#flush () causes all buffered command strings to be
immediately processed by xmgrace.
method exec : string -> unit
gp#exec s works like send, but also flushes the buffer
for immediate execution.
method exit : unit -> unit
gp#exit () causes the xmgrace process associated with
grace_process gp to terminate.