promptui icon indicating copy to clipboard operation
promptui copied to clipboard

Duplicate prompt line

Open ebrownewell opened this issue 4 years ago • 6 comments

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)

ebrownewell avatar Dec 12 '19 21:12 ebrownewell

Hi dipndawtz

I was stumbling upon this library as I'm trying to play around with this and noticed this it will cause to repeat the label and its value upon hitting the enter key.

At this "prompt.go", line 166, try to disable it and it should work and I raised a request to amend it or remove it. It works for me. Thank you

image

pinoylearnpython avatar Jan 22 '20 13:01 pinoylearnpython

Happens since v0.4.0.

hpohl avatar Feb 20 '20 11:02 hpohl

I just ran into this issue myself

desponda avatar May 17 '20 01:05 desponda

I have just run into this issue today, could 2020 get any worse?

carbontwelve avatar Sep 05 '20 23:09 carbontwelve

Any update on this?

bseenu avatar Oct 22 '20 17:10 bseenu

Likely caused by #148, #169 will resolve this

1lann avatar Dec 31 '20 19:12 1lann