-
Notifications
You must be signed in to change notification settings - Fork 1
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
Poetry shell - Problem when erasing accented letters #20
Comments
I can recreate the issue with:
|
I have no solution for you, but I'm fascinated by this problem :) Most probably it's in encoding problem. But why does this happen only in a shell created by poetry? 🤔 |
@finswimmer No clue either. Shells/terminals are quite tricky to tame. Did you manage to recreate the issue? |
Yes, I'm able to reproduce it, if I start the script with |
this looks like a pexpect problem, maybe the same as pexpect/pexpect#689 As there, you can recreate the issue inside the shell obtained through
|
cf #18 |
-vvv
option).Issue
Hi,
I create this very simple test script:
When I run it from my normal shell (zsh 5.8) I can type "ééé", and then erase those three characters, end of the story.
When I run it from inside poetry shell, I can type "ééé", and then I can erase all the way to the "g" at the end of something, including it. So I can "erode" the prompt, so it looks like "Enter somethin". If I now type something, with or without accents, it will be written right after "somethin", and it will be correctly registered and printed to me. So I can read "Enter somethinhello", hit Enter, and "hello" gets printed on the next line.
The number of prompt characters I can erase depends on the number of accented letters I've entered first. If I enter four of them, such as "éééé", I can erase one character further, until it reads "Enter somethi".
The text was updated successfully, but these errors were encountered: