dev/bash/clear_stdin/clear_stdin.sh

16 lines
135 B
Bash
Raw Normal View History

2011-04-30 18:03:24 +04:00
#!/bin/bash
clear_stdin()
{
while read -n1 -t.1 a;do :;done
}
sleep 3
clear_stdin
echo -n "Введите a: "
read a
echo $a