[GH-ISSUE #212] Full-width characters in table disappear when scroll it #163

Closed
opened 2026-03-04 01:02:32 +03:00 by kerem · 4 comments
Owner

Originally created by @tmskst on GitHub (Dec 21, 2018).
Original GitHub issue: https://github.com/rivo/tview/issues/212

  1. Run this sample program.
  2. Press j or k.
  3. Full-width characters (such as "先生") disappear.
    (When resize the window, these characters appear again)
package main

import (
	"github.com/rivo/tview"
)

func main() {
	table := tview.NewTable()
	table.SetCellSimple(0, 0, "先生aa")
	table.SetCellSimple(1, 0, "博士bb")
	table.SetCellSimple(2, 0, "保存cc")
	application := tview.NewApplication()
	application.SetRoot(table, true)
	application.Run()
}

I found this problem on f93fbad8f8, Windows 10 + PowerShell

Originally created by @tmskst on GitHub (Dec 21, 2018). Original GitHub issue: https://github.com/rivo/tview/issues/212 1. Run this sample program. 2. Press <kbd>j</kbd> or <kbd>k</kbd>. 3. Full-width characters (such as "先生") disappear. (When resize the window, these characters appear again) ``` package main import ( "github.com/rivo/tview" ) func main() { table := tview.NewTable() table.SetCellSimple(0, 0, "先生aa") table.SetCellSimple(1, 0, "博士bb") table.SetCellSimple(2, 0, "保存cc") application := tview.NewApplication() application.SetRoot(table, true) application.Run() } ``` I found this problem on f93fbad8f8, Windows 10 + PowerShell
kerem closed this issue 2026-03-04 01:02:32 +03:00
Author
Owner

@rivo commented on GitHub (Dec 25, 2018):

I can't reproduce this. At least not after the latest commit. Could you please retest this with the latest commit and let me know if you still have that problem?

<!-- gh-comment-id:449865706 --> @rivo commented on GitHub (Dec 25, 2018): I can't reproduce this. At least not after the latest commit. Could you please retest this with the latest commit and let me know if you still have that problem?
Author
Owner

@tmskst commented on GitHub (Dec 26, 2018):

I retested with the latest commit (e432b27b03), but this problem still has occurred.
According to git bisect, 29458dad3e is the first bad commit
(I can't reproduce this problem on fed6446838).

However, on fed6446838, Full-width characters did not disappear after scrolling, but the characters shifted.

aa先生aa
bb博士bb
cc保存cc

↓  Press any key...

aa 先生a
bb 博士b
cc 保存c
<!-- gh-comment-id:449907199 --> @tmskst commented on GitHub (Dec 26, 2018): I retested with the latest commit (e432b27b03), but this problem still has occurred. According to git bisect, 29458dad3ecc3dc44d699cf26c8e484385b46189 is the first bad commit (I can't reproduce this problem on fed644683849886741e494ea1ada5c38b46705c1). However, on fed644683849886741e494ea1ada5c38b46705c1, Full-width characters did not disappear after scrolling, but the characters shifted. ``` aa先生aa bb博士bb cc保存cc ↓ Press any key... aa 先生a bb 博士b cc 保存c ```
Author
Owner

@rivo commented on GitHub (Dec 26, 2018):

This appears to be a problem with tcell. I've opened an issue over there: https://github.com/gdamore/tcell/issues/250

<!-- gh-comment-id:450015911 --> @rivo commented on GitHub (Dec 26, 2018): This appears to be a problem with `tcell`. I've opened an issue over there: https://github.com/gdamore/tcell/issues/250
Author
Owner

@rivo commented on GitHub (Feb 12, 2019):

I'm closing this for now. I will get notified once gdamore/tcell#250 is solved and then I'll make sure it propagates to tview. (Although I believe nothing needs to be done here anyway.)

<!-- gh-comment-id:462837094 --> @rivo commented on GitHub (Feb 12, 2019): I'm closing this for now. I will get notified once gdamore/tcell#250 is solved and then I'll make sure it propagates to `tview`. (Although I believe nothing needs to be done here anyway.)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#163
No description provided.