1

I want to use arrow keys with general keys.

For example)

read -s -n 3 key

case ${key} in

^[[A)

     echo "UP"
     ;;
"d")

     echo "d"
     ;;
"s")

     echo "s"
     ;;
esac
kaylum
  • 13,833
  • 2
  • 22
  • 31
Pyo
  • 21
  • 2
  • Does this answer your question? [Casing arrow keys in bash](https://stackoverflow.com/questions/10679188/casing-arrow-keys-in-bash) – Digvijay S Jun 18 '20 at 09:31

0 Answers0