jroimartin / gocui

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

Support to trim old lines in view #103

Open kaoet opened 7 years ago

kaoet commented 7 years ago

The current implementation of View cannot be used as a log output window. Because such window produces thousands of lines per second. And finally leads to OOM because old lines are not clear out of memory.

View should support something like 'max lines` just like all terminal emulators. Old lines should be removed from the internal buffer.

awnumar commented 7 years ago

I agree with this. +1

lesovsky commented 6 years ago

Is there any plans to implement this feature?

mjarkk commented 5 years ago

@lesovsky someone made an issue about this at awesome-gocui/gocui and it seems like this will be implemented.
Ow our fork is a community driven fork that aims to start working on gocui actively again.

lesovsky commented 5 years ago

@mjarkk thanks I also found that project and tracking it permanently. It seems I will switch to using fork in lesovsky/pgcenter