箭头键在 sqlplus 中不起作用 [英] arrow keys are not functional in sqlplus
问题描述
我发现箭头键在 sqlplus 控制台上不起作用.例如,如果我按左箭头键,它会显示为
I find that the arrow keys don't work on the sqlplus console. For example if I press left arrow key, it shows like
SQL>^[[B
有解决这个问题的办法吗?
Does any solutions exist to solve this problem?
推荐答案
您可以使用名为 rlwrap
.
rlwrap 是一个 readline 包装器,一个使用 GNU 的小型实用程序readline 库允许编辑任何其他的键盘输入命令.它为每个命令维护一个单独的输入历史,并且可以使用所有以前看到的单词和/或用户指定的文件.
rlwrap is a readline wrapper, a small utility that uses the GNU readline library to allow the editing of keyboard input for any other command. It maintains a separate input history for each command, and can TAB-expand words using all previously seen words and/or a user-specified file.
因此,您将能够使用箭头并获得命令历史作为奖励.
So you will be able to use arrows and also get a command history as a bonus.
安装实用程序后,按以下方式运行 sqlplus
:
After you have installed the utility run sqlplus
the following way:
$ rlwrap sqlplus
这篇关于箭头键在 sqlplus 中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!