Christian Rocha
9f9b3aea96
Read input regardless of whether or not it's a TTY
...
This commit also contains some refactors:
* Refactor away inputStatus type
* Refactor away program.inputIsTTY member
* Simplify how we setup and restore input when it's a TTY
2021-08-02 10:50:04 -04:00
Christian Rocha
0780601791
Open a TTY if input is not a TTY, unless the user has spec'd otherwise
2021-02-27 16:03:34 -05:00
Christian Rocha
9f04c936da
Always listen for SIGINT
2021-01-11 18:11:28 -05:00
Christian Rocha
64da3bcf7a
Use correct output when enabling ANSI colors on Windows (see #39 )
2020-12-30 22:23:19 -05:00
Christian Rocha
6d70abd7d5
When showing/hiding the cursor operate on the program's io.Writer
...
Previously we were operating on io.Stdout.
2020-12-03 13:56:37 -05:00
Christian Rocha
eb919b622f
Use containerd/console for raw mode to get arrow key support on Windows
2020-10-13 15:41:48 -04:00
Christian Rocha
4d14af713f
Remove pkg/term dependency
2020-10-13 12:55:38 -04:00