Command line-editing

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:

Character   Function
Line Editing
^B   move back a single character.
^F   move forward a single character.
^A   move to the beginning of the line.
^E   move to the end of the line.
^H, DEL   delete the previous character.
^D   delete the current character.
^K   delete from current position to the end of line.
^L, ^R   redraw line in case it gets trashed.
^U   delete the entire line.
^W   delete from the current word to the end of line.
History
^P   move back through history.
^N   move 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:

Arrow key Function  
Left same as ^B.  
Right same as ^F.  
Ctl Left same as ^A.  
Ctl Right same as ^E.  
Up same as ^P.  
Down same as ^N.  

The Atari version of readline defines some additional key aliases:

Arrow key Function  
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.)