Global I/O helper
skx opened this issue · comments
At the moment we have the io
package for polling for characters, and lines. It turns on/off echos as necessary.
If we have "no echo input" ten times in a row it disables echoing ten times in a row.
If we instead used a consistent object for IO it could have three states:
- Unknown
- Echo on
- Echo off
And it would only need to make the change when the state changed.