mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #853] Scrambled text not found in old commit. #619
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#619
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jorgeluismireles on GitHub (May 25, 2023).
Original GitHub issue: https://github.com/rivo/tview/issues/853
I found old code works correctly but newest doesn't, for the same example and machine I got:
For github.com/rivo/tview v0.0.0-20200915114512-42866ecf6ca6:

For github.com/rivo/tview v0.0.0-20230525073430-4a1f85bb2219:

For exactly the same example:
I searched the FAQ, tried several console's configs changes but the issue persists.
Thanks for your advice!
@jorgeluismireles commented on GitHub (May 25, 2023):
The problem is present even for base example of recent tcell:
But my systems (ARM32, x86) works OK with old tview mentioned which uses 'old' tcell:
How to proceed?
More details about the differences from tcell requires:
Old versions that work for my case:
New versions don't:
@rivo commented on GitHub (May 25, 2023):
I would suggest that you take this issue over to
tcell.tviewis based ontcell. Iftcellhas this problem,tviewwill have it, too, and it needs to be solved there. In that case, there's nothing I can do here.@jorgeluismireles commented on GitHub (May 25, 2023):
Thanks. The problem started when
tcellchanged from v1.4.0 to v2The last version "working" is the v2.5.1, the first "failing" is v2.5.2. I'll post the issue there.
@gdamore commented on GitHub (May 26, 2023):
I'm guessing some terminal is missing support for some capabilities that I'm using... I need more detail about the specific terminal so I can investigate.
@jorgeluismireles commented on GitHub (May 26, 2023):
Workaround
For legacy linux 32 bits systems
arm,x86set environment variableTERM=linuxbefore to prevent latest versions scramble the display. Default terminals of typextermcause escape/mouse artifacts.@gdamore commented on GitHub (May 26, 2023):
If this is on a linux terminal then any form of "xterm" is wrong because it does not support the normal xterm escapes.
@rivo commented on GitHub (Jun 18, 2023):
@jorgeluismireles Have you been able to solve this? I will probably close this issue soon as it doesn't appear to be related to
tview.@gdamore commented on GitHub (Jun 18, 2023):
I'm quite certain that the problem here is neither a bug in tcell nor tview. It was user error declaring a terminal to be xterm that isn't, which caused us to emit various escape sequences that the terminal did not know how to handle.
I recommend just closing this as not a bug.
And for posterity: The linux console is not xterm. It is "linux", and I believe that is the correct setting for $TERM when using the linux console.
@jorgeluismireles commented on GitHub (Jun 19, 2023):
Yes, I solved the problem setting in old linux terminals:
TERM=linux. Thanks!