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

VS Code Embedded Terminal: Errors when using arrows to navigate the autocompletion menu #27

Open
0cv opened this issue Oct 12, 2020 · 3 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@0cv
Copy link

0cv commented Oct 12, 2020

For example with bit checkout ...
image

Then when the last selection is hit it looks like this and the selection is blocked:
image

Under certain circumstances (when coming back and forth, not sure exactly how), then I get also this:
image

@0cv 0cv changed the title Errors hen using arrows to navigate the autocompletion menu Errors when using arrows to navigate the autocompletion menu Oct 12, 2020
@chriswalz
Copy link
Owner

What OS/Terminal/Shell are you using?

@chriswalz chriswalz added bug Something isn't working help wanted Extra attention is needed labels Oct 12, 2020
@0cv
Copy link
Author

0cv commented Oct 12, 2020

You're right, I didn't realize it could be related to my Terminal and/or Shell. I was using the Terminal of VSCode. I'm using also iTerm with ZSH in OSX and it works including the default Terminal.app. But it fails with the embedded terminal of Code =>

image

@chriswalz chriswalz changed the title Errors when using arrows to navigate the autocompletion menu VS Code Embedded Terminal: Errors when using arrows to navigate the autocompletion menu Oct 12, 2020
@zeeke
Copy link

zeeke commented Oct 8, 2022

Hi, I think I reproduced this issue also with a basic go-prompt program.

In both ways (running bit and with adoc program) I can hit the problem only if I hold DOWN arrow button.

I'm not sure it's what @0cv experienced, but the root cause is that vscode sends two DOWN characters at once in prompt.go.

Just discovered adding logs:

2022/10/08 18:59:20 b: 1b5b42    <--- good DOWN arrow 
2022/10/08 18:59:21 b: 1b5b421b5b42  <--- bad 2xDOWN arrow 

See https://github.com/c-bata/go-prompt/blob/master/input.go#L72

Going to raise an issue also to go-prompt repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants