clear stdin example
This commit is contained in:
parent
0af0bf311d
commit
056ad46082
15
bash/clear_stdin/clear_stdin.sh
Executable file
15
bash/clear_stdin/clear_stdin.sh
Executable file
@ -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…
x
Reference in New Issue
Block a user