箭头键在sqlplus中不起作用 [英] arrow keys are not functional in sqlplus

查看:94
本文介绍了箭头键在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆