manifoldco / promptui

Interactive prompt for command-line applications
https://www.manifold.co
BSD 3-Clause "New" or "Revised" License
6.07k stars 336 forks source link

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

Open zlesnr opened 3 years ago

zlesnr commented 3 years ago
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.

mcsteele8 commented 2 years ago

I am having the same issue