This chapter summarizes the verbs which produce input/output. More information can be found in chapter 15.
close/socket
|
open/socket
Socket I/O. Has been implemented for communicating with terminal server ports. Can be used with any socket. See section 15.3.49. |
cursor
Invokes the software cursor (sec. 15.3.17). The software cursor moves in the world coordinate frame from data point to data point. It can be used to set markers. In addition data points can be changed or deleted. In contrast to the software cursor there is a gin-cursor which lives in the graphics coordinate plane ( locator, digitize). |
digitize
May be entered when a SCAN is changed. The gin-cursor is used to specify data points. |
dump
|
restore
Everything that is in the queue is written/restored to/from a file (sec. 15.3.23, 15.3.60). Dump and restore produce unformatted I/O. These verbs can be used to save complicated plots or to store experimental data. They also allow the user to interrupt work for a lunch break and continue with a minimum effort. |
fclose
|
fopen
A file is opened/closed using C run time library functions (sec. 15.3.29, 15.3.32). After a file is opened, formatted records can be written/read using the verbs say and inquire. |
inquire
|
say
These verbs perform formatted record I/O with the terminal or a file (sec. 15.3.39, 15.3.66). The file must have been opened before. The corresponding verb is fopen. |
say/mailto=...
Sends a string as an email to the specified user, 15.3.66. |
inquire/key
|
inquire/keyw
A single keystroke is read. The qualifier /keyw directs SPECTRA to wait until a key is pressed, /key makes SPECTRA read the input buffer and execute the next command. See also the explanations about the functions keyw() and key() (sec. 14.5.7). |
locator
Input is received from the gin-cursor. This command may be entered when a SCAN or a TEXT is changed. If called for a SCAN, the viewport is set. In case a TEXT is changed, the position is defined. |
read
|
write
Formatted and unformatted files are read/written (sec. 15.3.57, 15.3.83). Several formats are available. |
read/gqe
|
write/gqe
An unformatted I/O which can be used to handle every type of queue element. |