dev/bash/clear_stdin/clear_stdin.sh

16 lines
135 B
Bash
Executable File

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