【发布时间】:2014-07-09 07:56:17
【问题描述】:
我想用箭头键浏览终端对话框菜单(如 bash 'dialog')
我更喜欢 ruby 解决方案,但 bash/python 可以工作。
read -n1 input # is not good enough, cause the arrow keys are not regular chars.
另外,mac 术语中的“读取”不支持小于 1 秒的超时。
有什么事吗?
谢谢,
【问题讨论】:
标签: python macos terminal stdin