We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A change was added in #507 which allowed for more graceful termination, however the default functionality does not properly exit.
package main import ( "fmt" "github.com/pterm/pterm" ) func main() { list := []string{"hello", "world", "example"} selectedItem, _ := pterm.DefaultInteractiveSelect. WithDefaultText("Select an item"). WithMaxHeight(20). WithOptions(list). Show() fmt.Println("selected item:", selectedItem) }
Expected output when running Ctrl + C
Ctrl
C
$ go run main.go Select an item [type to search]: > hello world example exit status 1
Actual output:
$ go run main.go Select an item [type to search]: > hello world example selected item: hello
The text was updated successfully, but these errors were encountered:
v0.12.59
DefaultInteractiveSelect
ctrl+c
Successfully merging a pull request may close this issue.
A change was added in #507 which allowed for more graceful termination, however the default functionality does not properly exit.
Expected output when running
Ctrl
+C
Actual output:
The text was updated successfully, but these errors were encountered: