Command-line-editing

Command-line editing and command history are supported using either an external gnu readline library, an external BSD libedit library, or a built-in equivalent. This choice is a configuration option at the time gnuplot is built.

The editing commands of the built-in version are given below. Please note that the action of the DEL key is system-dependent. The gnu readline and BSD libedit libraries have their own documentation.

Command-line Editing Commands
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 delete the previous character.
DEL delete the current character.
^D delete current character. EOF if line is empty.
^K delete from current position to the end of line.
^L redraw line in case it gets trashed.
^U delete the entire line.
^W delete previous word.
^V inhibits the interpretation of the following key as editing command.
TAB performs filename-completion.
  History
^P move back through history.
^N move forward through history.
^R starts a backward-search.