question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:open
  • Created 3 years ago
  • Reactions:2
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
finswimmercommented, Nov 9, 2020

Yes, I’m able to reproduce it, if I start the script with poetry run ... or run poetry shell first. But I’m not able if I activate the venv with source .venv/bin/activate. So it has something to do how the shell is created.

0reactions
dimblebycommented, Oct 23, 2022

cf #4216

Read more comments on GitHub >

github_iconTop Results From Across the Web

removing accent in letter in python, works in idle shell but not ...
On Windows, you can configure this behaviour using the chcp command. On linux, it depends. This is a good question to look at:...
Read more >
Remove accents from characters - Unix & Linux Stack Exchange
You can try iconv , with the //TRANSLIT (transliteration) option. Ex. given $ cat file ë ê Ý,text Ò É. then $ iconv...
Read more >
CMD: How to use non-English characters? - Super User
This question was asked at stackoverflow here and here. ... For viewing Unicode characters in a CMD Window you need to use Lucida...
Read more >
Letters; "Stories and Plays: "Poetry as a Writing Form - ERIC
Syllabication and primary accent. Prefixes and derived words. Alphabetize to second or third letter. History of English jaanguam.
Read more >
The Complete Poems of Emily Dickinson
Higginson's problem was compounded by the fact ... The first weeks of this letter exchange were critical in Emily Dick- ... WIping away...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found