Ask questionsLine wrap not working in Windows Terminal
Hi, it seems that line wrap is not working when using Windows Terminal (
wt) instead of the default terminal emulator used by
I also did a quick check of running
WSL2-Ubuntu-bash instead of
pwsh and suprisingly there it worked:
So my feeling is, that is has to do with some environment variables that need to be set or some special workarounds that radian does when running on windows, which aren't required for
wt. (I tested all options that can be set through
radian.auto_width without success).
Used versions checks on windows:
Used versions for check on WSL2:
Any advice on how to fix/debug this issue would be greatly appreciated.
Answer questions toscm
Thanks for the hint. I checked which version of prompt toolkit I have installed and it's actually 3.0.18, but I think you're right anyways.
I tried to step through the code to find out where the line gets cut off and it seems to happen in line 171-172 of
console.py (in the
output.write_raw(buf); output.flush() part.
As a workaround I replaced the
output.write_raw(buf); output.flush() with
sys.stdout.write(buf); sys.stdout.flush() and it seems to work for now 🥳
Related questionsNo questions were found.