Skip to content
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

Add auto wordwrap for StdoutProxy #1483

Open
AnzhiZhang opened this issue Aug 22, 2021 · 6 comments
Open

Add auto wordwrap for StdoutProxy #1483

AnzhiZhang opened this issue Aug 22, 2021 · 6 comments

Comments

@AnzhiZhang
Copy link

When I using Windows Terminal run cmd, run this code:

from prompt_toolkit.patch_stdout import patch_stdout

with patch_stdout():
	for i in range(100):
		print('a' * i)

If characters are too many longer than one line, extra part will be cut.

There is expected behavior

There is actual behavior

@AnzhiZhang
Copy link
Author

This bug will run only on Windows Terminal(sorry i am on chinese win):
image

It is not dependent of run cmd or Powershell in Terminal

@I-love-study
Copy link

In fact, I can get same error in both Windows Console Host and Windows Terminal (1.12.10334.0) on Windows 11 by using the script below

from prompt_toolkit.patch_stdout import patch_stdout

with patch_stdout():
    print('a' * 300)

(I'm also in a Chinese Win)

image

image

image

@BlueGlassBlock
Copy link

Perhaps this issue should be called "Add auto wordwrap for StdoutProxy"

@AnzhiZhang AnzhiZhang changed the title long line will be cut in Windows Terminal rather than new line output Add auto wordwrap for StdoutProxy Jun 12, 2022
@GreyElaina
Copy link

This problem is caused by Vt100_Output...

GreyElaina added a commit to GreyElaina/python-prompt-toolkit that referenced this issue Jun 25, 2022
GreyElaina added a commit to GreyElaina/python-prompt-toolkit that referenced this issue Jun 25, 2022
@GreyElaina
Copy link

i fix this issue on my branch: https://github.com/GreyElaina/python-prompt-toolkit

@AnzhiZhang
Copy link
Author

Hello, is anyone working on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants