wait for shell prompt