# save terminal setting
OLDSTTY=$(stty -g 2>/dev/null)
#in case of abnormal termination, restore terminal setting automatically
trap "stty $OLDSTTY" 1 2 3 6 14 15
#change terminal setting to blind mode
stty -icanon -echo min 1 time 0 2>/dev/null
#get password in blind mode
read PASSWORD?"Enter your password : "
#print a line feed
print
#restore terminal setting before continuing
stty $OLDSTTY 2>/dev/null
#continue to get things in visible mode
read login?"Enter your login : "