从`亚行shell`使用的sqlite3时,光标按键不灵 [英] Cursor keys not working when using sqlite3 from `adb shell`

查看:196
本文介绍了从`亚行shell`使用的sqlite3时,光标按键不灵的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用的sqlite3通过亚行外壳箭头键,而不是将光标移动到所需的位置或召唤史设施,以下是显示在屏幕上: ^ [[A ^ [[B ^ [[C ^ [研究[D

When using sqlite3 through adb shell arrow keys, instead of moving the cursor to the desired position or summoning the history facility, the following is showed in the screen: ^[[A, ^[[B, ^[[C, ^[[D.

我使用的是Mac OS X和我都试过终端的iTerm 终端仿真器。

I'm using Mac OS X and I have tried Terminal and iTerm terminal emulators.

是否有人知道如何解决这一问题?

Does anybody know how to fix this?

推荐答案

要允许编辑和历史在控制台程序的输入,该程序必须与的readline 库。

To allow editing and history in the input of a console program, that program must be linked with the readline library.

sqlite3的工具不支持readline的,但在Android上,readline的支持已被禁用。 (大概是因为的ReadLine只采用GPL许可协议。)

The sqlite3 tool does support readline, but on Android, readline support has been disabled. (Probably because readline is licensed only under the GPL.)

这篇关于从`亚行shell`使用的sqlite3时,光标按键不灵的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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