awesome-gocui / gocui

Minimalist Go package aimed at creating Console User Interfaces.
BSD 3-Clause "New" or "Revised" License
344 stars 39 forks source link

Support maximum number of lines for a view #66

Closed dsouzae closed 4 years ago

dsouzae commented 4 years ago

Added a variable to a View to support capping the number of lines in a lines, defaults to be infinite.

dsouzae commented 4 years ago

This PR needs some work, as it will cause index out of range panic in writeCells. Plus the output for scrolling is broken too.

dsouzae commented 4 years ago

Going to close this PR, as logic in the code is different from the original jroimartin/gocui code.