任何人都建议如何修复此代码?读取时 F5 出现问题。请帮忙..
read -sn3 KEY
case "$KEY" in
$'\x1b[A') echo "press arrow up";;
$'\x1b[B') echo "press arrow down";;
$'???') echo "press key F5";;
esac
谢谢大家的帮助
任何人都建议如何修复此代码?读取时 F5 出现问题。请帮忙..
read -sn3 KEY
case "$KEY" in
$'\x1b[A') echo "press arrow up";;
$'\x1b[B') echo "press arrow down";;
$'???') echo "press key F5";;
esac
谢谢大家的帮助