mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #130] Multiline text in a Table or List get crazy #100
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#100
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 @KyleBanks on GitHub (Jun 8, 2018).
Original GitHub issue: https://github.com/rivo/tview/issues/130
Here's a sample program that demonstrates the issue. Basically the
Tablecontains a number of defaultTableCellwith a multiline string:And here are the results when the application starts, and after moving around with the up and down arrows a few times:
Go Version: 1.10.2
OS: macOS v10.13.2
Terminal Version: 2.8
@rivo commented on GitHub (Jun 9, 2018):
Thanks for spotting this. I just rolled out a fix.
Please note that
Tablecells can never contain multi-line text. The content of a table row is only one row on the screen. If you need a table-like structure that is more complex, you'll need to useGrid.@KyleBanks commented on GitHub (Jun 9, 2018):
Awesome, thanks for the quick turnaround. I ended up switching to a large
TextView with regions and managing scrolling and selection myself, but I'll
test this out.
On Sat, Jun 9, 2018, 7:18 AM rivo, notifications@github.com wrote: