How to read key charcode in bash?

后端 未结 0 1018
情书的邮戳
情书的邮戳 2021-02-05 00:03

I have simple script written in bash:

#!/bin/bash
while true; do
read -rsn1 input
if [ "$input" = "a" ]; then
firefox;
fi
done
<
相关标签:
回答
  • 消灭零回复
提交回复
热议问题