--- #!/bin/bash echo -n "Enter a character: " stty raw # or stty raw readchar=`dd if=/dev/tty bs=1 count=1 2>/dev/null` stty -raw echo -e "Thank you for typing a $readchar ." --- from unix-faqs