Skip to content

EDIT (recall)

Recall Last Command for Editing

This directive enables you to retrieve, edit, and execute the last command entered and executed in Thoroughbred Basic Console Mode.

' [line-num]
line-num
is the program line number to be edited. Valid values are integers.

This directive can be used only in Thoroughbred Basic Console Mode.

When the ’ (apostrophe character) is entered without a line number, this directive displays the last entered command. You can modify the command:

  • To execute the edited command, press the Enter key.
  • If you do not want to execute the command again, press the Escape key to return to Thoroughbred Basic Console Mode.

If there is no previous command, the ’ command is ignored. A new line with a new prompt character will be displayed.

When the ’ (apostrophe character) is entered with a line number, this directive is equivalent to the EDIT line-ref directive. For more information on available editing options, please refer to the description of the EDIT - line directive.

READY
> '
>

displays a new line and prompt character. Thoroughbred Basic has just been started, no command has been entered, and so no command can be recalled.

> PRINT "*****"
*****
> '
PRINT "*****"

The PRINT “*****” command produces *****. Typing ’ (apostrophe character) and pressing the Enter key redisplays the PRINT “*****” directive. The following example assumes that you will change “*****” to “HELLO”.

PRINT "HELLO"
HELLO
>

After you change PRINT “*****” to PRINT “HELLO” and press the Enter key, Thoroughbred Basic displays HELLO, opens a new line, and displays the prompt character.

> ' 200

displays the line numbered 200 from the Thoroughbred Basic program currently loaded into memory.

EDIT full-screen, EDIT line, and EDITF directives
Descriptions of EDIT and EDITF in the Thoroughbred Basic Utilities Manual

From the Thoroughbred Basic Language Reference, Volume I: A–E, version 8.9.1. Open this page in the PDF