termdash/widgets
Jakub Sobon 4238ac6f76
Implements a buffer limit for the Text widget. (#301)
See issue #293 where memory and performance can degrade with a high number of lines written to the Text widget. 

This is a very simplistic implementation to limit the possible length the text buffer can grow to with the `maxContent` option. 

Default value of -1 means there's no limit and therefore behaviour should remain standard.

It has been working in our test app and allows the use of the Text widget to monitor logs (ie tail) and therefore doesn't bloat over time, but happy to adjust as required.
2021-04-03 17:04:53 -04:00
..
barchart
button Moving formdemo under widgets/textinput. 2020-12-30 02:12:37 -05:00
donut
gauge
heatmap
linechart
segmentdisplay
sparkline
text Implements a buffer limit for the Text widget. (#301) 2021-04-03 17:04:53 -04:00
textinput Moving formdemo under widgets/textinput. 2020-12-30 02:12:37 -05:00