SED navigation bar go to SED home page go to Dataplot home page go to NIST home page SED Home Page SED Staff SED Projects SED Products and Publications Search SED Pages
Dataplot Vol 1 Vol 2

READ LINE (SET)

Name:
    READ LINE (SET)
Type:
    Subcommand under SET
Purpose:
    Specifies whether or not the GNU READLINE library will be used to parse commands entered from the terminal.
Description:
    The GNU READLINE library allows command line editing and history recall (with editing). This library is available on most Unix/Linux platforms. Dataplot does not support this capability for Windows implementations.

    By default, this feature is disabled. To specify that command lines should be parsed by the READLINE library, enter the command

      SET READ LINE ON

    This capability is provided as a convenience for those Unix/Linux users who are familiar with the capabilities of READLINE from other applications.

    This capability only applies to commands that are entered from the terminal (i.e., commands read from macros or other files do not use this capability).

    When the READLINE capability is supported and the SET READLINE ON command is entered, then the following is available:

    1. The current command line can be edited. By default, the editing is performed using EMACS style commands. Alternatively, you can request vi style editing commands.

    2. You can recall previously entered commands (use Cntrl-r to search the history list starting with the most recently entered commands and Cntrl-f to search the history list in the order the commands were entered).

      The history list only starts with commands entered after the SET READ LINE ON command was entered and it will only include commands entered from the termininal (i.e., it will not include commands entered from the macro files).

    The editing capabilities supported by readline are extensive and we do not document them here. They are documented in full at the readline web site:

    This documentation lists the editing commands that are available and shows how you can customize key bindings. Note that Dataplot does not provide any customized commands or command completion.

Syntax:
    SET READ FORMAT <ON/OFF>
    where <ON> specifies that the READLINE capability will be used and <OFF> specifies that it will not.
Examples:
    SET READ LINE ON
    SET READ LINE OFF
Note:
    Dataplot allows recently entered commands to be listed with the LIST (or L) command. Selective commands may be re-executed or saved with the REPEAT (or R) and SAVE (or S) commands, respectively. However, no editing capability is provided for the REPEAT and SAVE commands.

    The LIST, REPEAT, and SAVE capabilities are independent of the READLINE capabilities. Commands entered via the READLINE capability are added to the DATAPLOT command list (i.e., the commands displayed by the LIST command).

Note:
    The maximum line length for a command is 255 characters. This is true whether READLINE is used or not.
Default:
    The READLINE capability is off.
Synonyms:
    None
Related Commands:
    LIST = List previously entered commands.
    REPEAT = Execute previously entered commands.
    SAVE = Save previously entered commands.
Applications:
    Input/Output
Implementation Date:
    2009/4

Privacy Policy/Security Notice
Disclaimer | FOIA

NIST is an agency of the U.S. Commerce Department.

Date created: 04/23/2009
Last updated: 11/07/2016

Please email comments on this WWW page to alan.heckert@nist.gov.