How to stop stdin while command is running in ash (not bash)?
For example:
sleep 10- type
echo hellowhilesleepis still running - observe
hellois instdoutaftersleepfinishes
Desired:
sleep 10- type
echo hellowhilesleepis still running - observe shell as if nothing was typed in while
sleepwas running
I expect the solution would be something like: tput <stop stdin>; sleep 10; tput <restart stdin>; <enter>
This will not be in a shell script (only needs to work with interactive shell).
sleep 10a placeholder for some other command? If so, will that command read from standard input, and would you need to stop it from doing so?stdin.