README ¶ interactive_confirm/demo SHOW SOURCE package main import ( "github.com/pterm/pterm" ) func main() { result, _ := pterm.DefaultInteractiveConfirm.Show() pterm.Println() // Blank line pterm.Info.Printfln("You answered: %s", boolToText(result)) } func boolToText(b bool) string { if b { return pterm.Green("Yes") } return pterm.Red("No") } Expand ▾ Collapse ▴ Directories ¶ Show internal Expand all Path Synopsis demo Click to show internal directories. Click to hide internal directories.