python-poetry / python-poetry/poetry-plugin-shell
Poetry shell - Problem when erasing accented letters
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 141
- Forks
- 10
- Avg merge
- 59m
- Merged PRs (30d)
- 3
Description
- 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 (
-vvvoption).
- 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".
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the provided Python input script inside poetry shell under zsh, then compare backspace behavior with the normal shell. Trace the shell's handling of accented input and terminal editing; done means accented characters can be erased without eroding the prompt or changing where subsequent input appears.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, zsh
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100