programming

script pause ( read -n )

chozo99 2009. 4. 14. 13:40
http://content.hccfl.edu/pollock/AUnix1/fancyio.htm

#!/bin/sh

Pause()
{
    key=""
    echo "Hit any key to continue...."
    stty -icanon
    key=`dd count=1 2>/dev/null`
    stty icanon
}

Pause;