rivo / tview

Terminal UI library with rich, interactive widgets — written in Golang
MIT License
11.17k stars 574 forks source link

Unexpected line breaks in TextView #882

Closed sshelll closed 1 year ago

sshelll commented 1 year ago

When I tried to run the codes in the Wiki of TextView, I modified the codes because I wanted to highlight some chars instead of words. Here's the code: image

And then I got the result like this: image

There're many unexpected line breaks after the target char ('t' in this example).

Is this a bug? Or there's another way to achieve the goal: highlight single char without line breaks?

PS: I also want to refresh the screen char by char, that's why I called time.Sleep() in each round.

My Env:

rivo commented 1 year ago

This looks like a bug. Let me get back to you once I know more.

rivo commented 1 year ago

I found the issue. The latest commit should fix this.