rlWrap Commands Synopsis

    Learn about our products

The rlWrap program is a readline wrapper, a small utility that uses the GNU readline library to allow the editing of keyboard input for any command; it also provides a history mechanism that is very handy for fixing or reusing commands. Splice Machine strongly recommends that you use rlWrap when interacting with your database via our command line interface, which is also known as the splice> prompt.

You can customize many aspects of rlWrap and readline, including the keyboard bindings for the available commands. For more information, see the Unix man page for readline.

The following table summarizes some of the common keyboard options you can use with rlWrap; this table uses the default bindings that are in place when you install rlWrap on MacOS; keyboard bindings may be different in your environment.

Command Description
CTRL-@ Set mark
CTRL-A Move to the beginning of the line
CTRL-B Move back one character
CTRL-D Delete the highlighted character
CTRL-E Move to the end of the line
CTRL-F Move forward one character
CTRL-H Backward delete character
CTRL-J Accept (submit) the line
CTRL-L Clear the screen
CTRL-M Accept the line
CTRL-N Move to the next line in history
CTRL-P Move to the previous line in history
CTRL-R Reverse search through your command line history
CTRL-S Forward search through your command line history
CTRL-T Transpose characters: switch the highlighted character with the one preceding it
CTRL-U Discard from the cursor position to the beginning of the line
CTRL-] Search for a character on the line
CTRL-_ Undo
ALT-< Go to the beginning of the history
ALT-> Go to the end of the history
ALT-B Backward word
ALT-C Capitalize the current word
ALT-F Forward word
ALT-L Downcase word
ALT-R Revert line
ALT-T Transpose words
ALT-U Uppercase word

Note that the ALT key is labeled as the option key on Macintosh keyboards.

If you’re using the splice> prompt in the Terminal.app on MacOS, the ALT- commands listed above only work if you select the Use Option as Meta key setting in the keyboard preferences for your terminal window