Emacs Binding

To use the emacs binding, create a file ~/.editrc and put "bind" on the last line of the file, run ttIsql. The editline lib prints the current bindings.

The keystrokes when using ttIsql with the emacs binding are:

Keystroke Action

<Left-Arrow>

Move the insertion point left (back up).

<Right-Arrow>

Move the insertion point right (move forward).

<Up-Arrow>

Scroll to the command prior to the one being displayed. Places the cursor at the end of the line.

<Down-Arrow>

Scroll to a more recent command history item and put the cursor at the end of the line.

<Ctrl-A>

Move the insertion point to the beginning of the line.

<Ctrl-E>

Move the insertion point to the end of the line.

<Ctrl-K>

Save and erase the characters on the command line from the current position to the end of the line.

<Ctrl-Y>

"Yank" (Restore) the characters previously saved and insert them at the current insertion point.

<Ctrl-F>

Forward char - move forward 1 (see Right Arrow).

<Ctrl-B>

Backward char - move back 1 (see Left Arrow).

<Ctrl-P>

Previous History (see Up Arrow).

<Ctrl-N>

Next History (see up Down Arrow).

<ESC-k> or <Ctrl-Up-Arrow>

Scroll up one line to edit within a multiple line PL/SQL block.

<ESC-j> or <Ctrl-Down-Arrow>

Scroll down one line to edit within a multiple line PL/SQL block.