I got this from one of my instructors years ago and I use it constantly:
echo "Press any key to continue\\c"
oldstty=$\(stty -g\)
stty -icanon -echo min 1 time 0
dd bs=1 count=1 2>/dev/null
stty "$oldstty"
I got this from one of my instructors years ago and I use it constantly:
echo "Press any key to continue\\c"
oldstty=$\(stty -g\)
stty -icanon -echo min 1 time 0
dd bs=1 count=1 2>/dev/null
stty "$oldstty"