#129·promptui

Duplicate prompt line

Author: ebrownewellCreated Dec 12, 2019Updated Feb 18, 2024

Using the latest version of promptui (v0.6.0) and Go v1.13.4 on windows 10 I see constant duplicating prompt lines when running a very simple prompt:

image

and it does the same with or without the mask, and in any terminal I can get my hands on (wsl, powershell, etc).

Here's the code I'm using:

prompt := promptui.Prompt{
  Label:     "Password",
  Mask:      '*',
}
result, err := prompt.Run()

if err != nil {
  log.WithError(err).Error("Error getting password prompt information. ")
  return
}

log.Info("Result: " + result)