AlecAivazis / survey

A golang library for building interactive and accessible prompts with full support for windows and posix terminals.
MIT License
4.07k stars 349 forks source link

survey.Multiline The display of the input at the bottom of the terminal is covered #487

Open Rehtt opened 1 year ago

Rehtt commented 1 year ago

What operating system and terminal are you using? windows11 , powershell An example that showcases the bug. code:

    qs := []*survey.Question{
        {
            Name:     "prompt",
            Prompt:   &survey.Multiline{Message: "Enter your query:"},
            Validate: survey.Required,
        },
    }
    var answersStruct struct {
        Prompt string `survey:"prompt"`
    }
    survey.Ask(qs, &answersStruct, survey.WithShowCursor(true))
    fmt.Println(answersStruct)

Imgur What did you expect to see?

What did you see instead?