FC
Use FC
to display and edit a previously issued GGSCI
command and then execute it again. Previous commands are stored in the memory buffer
and can be displayed by issuing the HISTORY
command (see HISTORY).
Displaying Previous Commands
Issuing FC
without arguments displays the most recent
command. Options enable you to execute any previous command by specifying its line
number or a text substring. Previous commands can be edited only if they were issued
during the current GGSCI session, because history is not maintained from one session
to another.
Editing Commands
The FC
command displays the specified command and then
opens an editor with a prompt containing a blank line starting with two dots. To
edit a command, use the space bar to position the cursor beneath the character in
the displayed command where you want to begin editing, and then use one of the
following arguments. Arguments are not case-sensitive and can be combined.
Table 3-19 FC Editor Commands
Argument | Description |
---|---|
i text |
Inserts text. For example:
|
r text |
Replaces text. For example:
|
d |
Deletes a character. To delete multiple characters,
enter a
|
replacement
text |
Replaces the displayed command with the text that you enter on a one-for-one basis. For example:
|
To execute the command, press Enter twice, once to exit the editor and once to issue the command. To cancel an edit, type a forward slash (/) twice.
Syntax
FC [n | -n | string]
Parent topic: GGSCI Command Line Interface Commands