I have this bash script that basically starts web servers and selenium servers with a progress indicator. Since it takes some time to start a selenium server, I check the status in an infinite loop.
The problem is that, while waiting for it to start, I press keys randomly displayed on the screen, and if the cycle ends (time out), it also appears on the command line.
I want to disable all user inputs (except for the control keys, of course) while inside the loop:
start_selenium() { echo -n "Starting selenium server" java -jar ${selenium_jar} &> $selenium_log &
source share