使用 Cordova 4.1.2。使用以下命令在 iPad 上成功运行项目后:
cordova run ios
并使用 kill
或 safequit
命令退出 LLDB,终端窗口将不再回显键盘输入。
是否有我可以输入的 shell 命令来恢复终端窗口的正常功能?目前,在测试我的 cordova 应用程序后,我必须退出终端并启动一个新终端。
最佳答案
cordova run ios
正在运行的脚本之一似乎正在关闭终端回显。之前的终端设置:
~>stty
speed 9600 baud;
lflags: echoe echoke echoctl pendin
iflags: iutf8
oflags: -oxtabs
cflags: cs8 -parenb
之后:
speed 9600 baud;
lflags: -icanon -iexten -echo echoe echoke echoctl
iflags: inlcr iutf8
oflags: -oxtabs
cflags: cs8 -parenb
dsusp eof lnext reprint status werase
<undef> <undef> <undef> <undef> <undef> <undef>
我已经能够通过在 LLDB 退出以恢复键盘回显后仔细键入以下内容来解决此问题:
stty echo
关于ios - "cordova run ios"终端不回显键盘输入后,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27427804/