ios - "cordova run ios"终端不回显键盘输入后

标签 ios macos cordova

使用 Cordova 4.1.2。使用以下命令在 iPad 上成功运行项目后:

cordova run ios

并使用 killsafequit 命令退出 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/

相关文章:

ios - Swift:如何访问全屏 HTML 视频的播放器对象?

javascript - 将 Web Audio API 输出保存到 Ionic 中的本地文件

ios - 无法为 '[OnboardingViewController]' 类型的值添加下标

ios - 访问 UITableView Cell 标签文本并在方法中使用它

ruby - 为什么 Ruby 的 ri 不返回 bash 命令提示符?

ruby - 在 Mac OS Catalina (10.15.7) 上安装 cocoapods 时出错

android - 从 cordova 插件访问自定义布局资源

android - 手机间隙 : SocialSharing phonegap plugin not working with pre filled message in FBDialog

ios - iPad分屏导致抽屉变暗

macos - 在安装了 Parallels 的 MacOS 上的 WebStorm 中运行应用程序