Closed skitt closed 3 years ago
When survey is used with no input, it fails (EOF) and leaves the terminal as-is, with the cursor in the bottom-right-hand corner and hidden.
EOF
Reproducer:
package main import ( "github.com/AlecAivazis/survey/v2" ) func main() { cont := false survey.AskOne(&survey.Confirm{ Message: "Do you want to continue?", }, &cont) }
Run as ./surveydemo < /dev/null.
./surveydemo < /dev/null
When survey is used with no input, it fails (
EOF
) and leaves the terminal as-is, with the cursor in the bottom-right-hand corner and hidden.Reproducer:
Run as
./surveydemo < /dev/null
.