Syntax: #HIS ShowDialog

Displays the last 20 commands in the output window. The number preceding each command is the command line number. You can execute one of the previous commands by preceded the command line number with the history character, which defaults to !. !! executes the most recent command. You can also execute a previous command using !pattern where pattern matches the text at the beginning of a previous command.

You can also pop up an interactive history dialog by right clicking in the output window, or by left clicking on the arrow button at the left of the command input line. The dialog shows the last 20 commands. If you single-click on a line, the command is copied into the edit line at the top of the dialog. You can then edit the command and press Enter to execute it. If you double-click on a command, it is sent directly to the server without allowing you to edit it, and the history dialog will close. To close the dialog without executing a command, right click on it.

To display this dialog using the #HISTORY command, include the ShowDialog argument.

Tab completion can also be used with history. If you use the history character (!) to specify a command, either numerically, or by using a pattern, then press <TAB>, the matching command will be copied into the command input buffer for editing.

HISTORY examples

displays the last 20 commands
executes the last command again
executes the third command in the history buffer
executes the last command beginning with the string k
retrieves the last command beginning with the string k for editing in the command line.

Add comment

Login or register to post comments