从ADB Shell使用sqlite3时光标键不起作用 [英] Cursor keys not working when using sqlite3 from adb shell

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

问题描述

当通过 adb shell 箭头键使用sqlite3时,屏幕上将显示以下内容,而不是将光标移动到所需位置或调用历史记录工具: c $ c> ^ [[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,并且已经尝试过 Terminal 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.)

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

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