I made a Bourne shell script, and I need to improve it by adding a "Press Esc button to execute a command".
This is a working example in BASH :
#!/bin/bash
read -s -n1 key
case $key in
$'\e') echo "escape pressed";;
*) echo "something else" ;;
esac
But I couldn't make it work in Bourne shell — Error : "read: Illegal option -s"
Can you please help me find a Bourne shell solution because almost all the information on Google is about Bash statements.