bit icon indicating copy to clipboard operation
bit copied to clipboard

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

Open 0cv opened this issue 5 years ago • 3 comments

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 avatar Oct 12 '20 06:10 0cv

What OS/Terminal/Shell are you using?

chriswalz avatar Oct 12 '20 06:10 chriswalz

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

0cv avatar Oct 12 '20 06:10 0cv

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.

zeeke avatar Oct 08 '22 17:10 zeeke