Poetry shell - Problem when erasing accented letters
See original GitHub issue- I am on the latest Poetry version.
- I have searched the issues of this repo and believe that this is not a duplicate.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).
- Archlinux, 5.9.3-arch1-1
- Poetry 1.1.4
- termite v15
- zsh 5.8
- No dependencies whatsoever
Issue
Hi,
I create this very simple test script:
print("Enter something: ", end="")
text = input()
print(text)
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”.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:6 (4 by maintainers)
Yes, I’m able to reproduce it, if I start the script with
poetry run ...
or runpoetry shell
first. But I’m not able if I activate the venv withsource .venv/bin/activate
. So it has something to do how the shell is created.cf #4216