[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6. Command-line-editing

Command-line editing is supported by the Unix, Atari, VMS, MS-DOS and OS/2 versions of gnuplot. 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 without regard to where the cursor is positioned.

(The readline function in gnuplot is not the same as the readline used in GNU Bash and GNU Emacs. If the GNU version is desired, it may be selected instead of the gnuplot version at compile time.)

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. The default makefile assumes that this is the case; by default gnuplot will be compiled with no line-editing capability. If you want to use gnuplot's line editing, set READLINE in the makefile and add readline.obj to the link file. 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.
     Ctrl Left  Arrow - same as ^A.
     Ctrl 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 .


[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated by root l2-hrz on May, 9 2001 using texi2html