The Unix, Atari, VMS, MS-DOS and OS/2 versions of GNUPLOT support command line-editing. Also, a history mechanism allows previous commands to be edited, and re-executed. After the command line has been edited, a newline or carriage return will enter the entire line regardless of where the cursor is positioned.
The editing commands are as follows:
Line-editing: ^B moves back a single character. ^F moves forward a single character. ^A moves to the beginning of the line. ^E moves to the end of the line. ^H and DEL delete the previous character. ^D deletes the current character. ^K deletes from current position to the end of line. ^L,^R redraws line in case it gets trashed. ^U deletes the entire line. ^W deletes the last word.History: ^P moves back through history. ^N moves forward through history.
On the IBM PC the use of a TSR program such as DOSEDIT or CED may be desired for line editing. For such a case GNUPLOT may be compiled with no line editing capability (default makefile setup). Set READLINE in the makefile and add readline.obj to the link file if GNUPLOT line editing is to be used for the IBM PC. The following arrow keys may be used on the IBM PC and Atari versions if readline is used:
Left Arrow - same as ^B. Right Arrow - same as ^F. Ctl Left Arrow - same as ^A. Ctl Right Arrow - same as ^E. Up Arrow - same as ^P. Down Arrow - same as ^N.
The Atari version of readline defines some additional key aliases:
Undo - same as ^L. Home - same as ^A. Ctrl Home - same as ^E. ESC - same as ^U. Help - `help' plus return. Ctrl Help - `help '.
(The readline function in gnuplot is not the same as the readline used in GNU BASH and GNU EMACS. It is somewhat compatible however.)
Go to the first, previous, next, last section, table of contents.