标签: bash variables shortcut-key
在以下示例中是否可以捕获+ + B(例如):
#!/bin/bash echo "give your key combination and press <ENTER>:" read input echo $input
我确实需要B作为变量。 = Ctrl按钮
答案 0 :(得分:0)
我要说不。使用其他语言。如果你完全绝望,你可以尝试其中一个hacks,但我不认可它们(除了KEYBD陷阱,这不是Bash)。