有人建议如何修复此代码?读取中F5的问题。请帮助..
read -sn3 KEY
case "$KEY" in
$'x1b[A') echo "press arrow up";;
$'x1b[B') echo "press arrow down";;
$'???') echo "press key F5";;
esac
谢谢大家的帮助
$ od -c <<< "<Ctrl-V><F5>"
0000000 033 [ 1 5 ~ n
0000006