#!/bin/sh ## How to input a single character (without user having to press enter key) echo "Type a single character: " stty raw REPLY=`dd bs=1 count=1 2>/dev/null` stty -raw echo '<-- OK!'