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
Carriage Return (\r) is rendered as space #2456
Comments
I'm having issues with carriage return as well when executing a command in the background and writing the logs into a text grid. These logs contain a progress bar with carriage return at the beginning of each line. It prints out unexpected characters that are not printed out when writing to Stdout (prints out the outcome of Here is minimal code to visualise it and compare to the output in the terminal:
Device: |
Your terminal interprets these control characters @julieta-311, but a text renderer does not. |
This fix was landed for Bowmore |
Thanks for the quick response! I'm filtering it out in my code at the moment, will try your other suggestion as well. |
Describe the bug:
I've only tested the entry and label widgets so far, but it appears that when Fyne comes across
\r
, it is rendered as a space. Ideally, the application would NOT render it at all, while still potentially having the option to use\r\n
for linebreaks, for compatibility with other Windows applications.To Reproduce:
In my case, I merely edited the textedit example, and inserted this line into the
Show()
function:I also added a
\n\r
into the "Cursor Row" label (which is backwards from how Windows apps normally handle it, but still demonstrates how Fyne labels handle the carriage return)Screenshots:
Device (please complete the following information):
The text was updated successfully, but these errors were encountered: