clear stdin example
This commit is contained in:
parent
0af0bf311d
commit
056ad46082
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
clear_stdin()
|
||||
{
|
||||
while read -n1 -t.1 a;do :;done
|
||||
}
|
||||
|
||||
sleep 3
|
||||
|
||||
clear_stdin
|
||||
|
||||
echo -n "Введите a: "
|
||||
read a
|
||||
|
||||
echo $a
|
Loading…
Reference in New Issue