Further refinement:
- Handle errors reading the input stream rather than spinning. This allows the script to survive suspend/resume.
Further refinement:
- Handle errors reading the input stream rather than spinning. This allows the script to survive suspend/resume.