prompt-toolkit / prompt-toolkit/python-prompt-toolkit

Incorrect line wrapping when content does not fit the window

Open
#327 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
10.6k
Forks
815
PR merge metrics
No merged PRs in 30d

Description

When running xonsh (http://xon.sh) with the python-prompt-toolkit shell type, the current path does not wrap if it does not fit the window:

screenshot

When typing commands, the output is not visible, but appears to be "off screen".

I brought the issue up with the xonsh developers, but since this only affects the python-prompt-toolkit shell type, they asked me to bring up the issue here. See https://groups.google.com/forum/#!topic/xonsh/FK4rnwf-pus

If you wish to investigate this, I'm sure the xonsh developers would be very willing to help in determining the exact source of this, and if it is actually a bug in python-prompt-toolkit or xonsh.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the long-path and command-entry behavior described for xonsh with the python-prompt-toolkit shell type, then consult the linked xonsh discussion to determine which project owns the defect. Done means content remains visible and wraps correctly within the terminal window.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.