Closed keithknott26 closed 5 years ago
Hi, so the replacement for Point
would be a combination of Buffer
and Cell
. A Cell
represents the look of one terminal cell, and it holds the rune and fg and bg fields now. The fg and bg fields are also now done through a Style
. The Buffer represents a viewable section of a terminal window, and contains a bunch of cells. The Cells are stored in a map of image.Point
s to Cells, so that's how you position Cells.
A lot has definitely changed, and the fact that the Point was split between a bunch of things doesn't make things easier :D So let me know if anything needs clarification.
edit: You can also check out the buffer.go
and style.go
files since that's were also this stuff is now.
Closing this but let me know if there's anything else.
Hello,
I'm planning to update an older v1 application to use v2 (or your latest code) but it appears termui.Point doesn't exist anymore. Is there a comparable replacement?
Thanks!