manifoldco / promptui

Interactive prompt for command-line applications

Home Page:https://www.manifold.co

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using a `\n` in the label of a select seems to break the output.

zlesnr opened this issue · comments

prompt := promptui.Select{
		Label: fmt.Sprintf("a\nquestion"),
		Items: []string{"Yes", "No"},
}
_, result, err := prompt.Run()

It appears that the label message gets mangled if the label contains a newline character.

I am having the same issue