ktr0731 / evans

Evans: more expressive universal gRPC client
MIT License
4.25k stars 188 forks source link

Weird behavior when trying to type @ character #193

Open eddex opened 5 years ago

eddex commented 5 years ago

I tried to type an email and used ALTGR+2 (CH-DE keyboard) to write an @.

Expected: An @ appears at the current cursor position.

Actual: ?@ appears on the current cursor position.

In addition, any subsequent keyboard input not only writes a character on the current cursor position but also duplicates the first character of the current line. evans_bug

ktr0731 commented 5 years ago

Thank you for reporting an issue. What is your terminal environment?

eddex commented 5 years ago

The issue also happens with any other special characters combined with the ALTGR key.

acomagu commented 2 years ago

I can reproduce with Alt key. Alt + any character(e.g. Alt+a) causes same display destruction also on my machine.

image

I assume it's same cause of AltGr's.

Maybe related?

Other programs, like Bash, simply ignore Alt+character, but Evans(maybe all CLIs using go-prompt?) doesn't. So I feel the good first step is to investigate why Evans can't ignore Alt+character on Windows.