Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate prompt line #129

Open
ebrownewell opened this issue Dec 12, 2019 · 6 comments
Open

Duplicate prompt line #129

ebrownewell opened this issue Dec 12, 2019 · 6 comments

Comments

@ebrownewell
Copy link

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)
pinoylearnpython added a commit to pinoylearnpython/promptui that referenced this issue Jan 22, 2020
Hi, I was stumbling upon your library as I'm trying to play around with your library and noticed this it will cause to repeat the label and its value upon hitting the enter key.  Hope this can help. Thank you so much.
@pinoylearnpython
Copy link

pinoylearnpython commented Jan 22, 2020

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

@hpohl
Copy link

hpohl commented Feb 20, 2020

Happens since v0.4.0.

@desponda
Copy link

I just ran into this issue myself

@carbontwelve
Copy link

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

@bseenu
Copy link

bseenu commented Oct 22, 2020

Any update on this?

@1lann
Copy link

1lann commented Dec 31, 2020

Likely caused by #148, #169 will resolve this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants