Skip to content

DefaultInteractiveMultiselect re-printing text on each keystroke #714

Open
@justin252

Description

@justin252

I have the following code using the MultiSelect to prompt the user to select an option:

	options := []string{"a", "b", "c"}
	selectedOptions, err := pterm.DefaultInteractiveMultiselect.
		WithOptions(options).
		Show()
	if err != nil {
		return err
	}
	pterm.Info.Printfln("Selected options: %s", pterm.Green(selectedOptions))

It seems that the "Please select your options" is getting re-printing on each keystroke.

multi-select-bug.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions