#!/bin/sh STTY=$(stty -g) stty raw -echo SEL=$(dd if=/dev/tty bs=1 count=1 2>/dev/null) stty "$STTY" echo "$SEL"