shell script respond to keypress

read -rsn1

Expect only one letter (and don’t wait for submitting) and be silent (don’t write that letter back).

Leave a Comment