1
0
mirror of https://github.com/mum4k/termdash.git synced 2025-04-28 13:48:51 +08:00

13 Commits

Author SHA1 Message Date
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
Jakub Sobon
b2c182063b
Formatting files and adding test coverage. 2020-11-13 02:29:25 -05:00
dank
8a316e6c1b
added the ability to swap the scrolling runes 2020-10-13 00:40:58 -04:00
Jakub Sobon
06eb7623bd
Modifying imports 'internal' -> 'private'. 2020-04-10 15:26:45 -04:00
Jakub Sobon
4237512047
Merge pull request #177 from mum4k/release-0-8-0
Release v0.8.0
2019-03-30 02:35:15 -04:00
Jakub Sobon
cd44225552
Fixing a typo. 2019-03-09 00:13:41 -05:00
Jakub Sobon
2742487fc0
The text widget now wraps at words. 2019-03-02 17:56:37 -05:00
Jakub Sobon
54c5dff63e
Factoring the line wrapping logic out of the text widget.
It will be needed for the Table too.
2019-02-24 23:10:52 -05:00
Jakub Sobon
b25d20c8ae
Mouse and keyboard are also public. 2019-02-24 02:08:48 -05:00
Jakub Sobon
2ff1818c0e
Moving keyboard and mouse to internal. 2019-02-23 21:11:50 -05:00
Jakub Sobon
2784a1c7a0
Constructor of Text now returns an error. 2019-02-15 00:20:20 -05:00
Jakub Sobon
d3db859678
Adding licence. 2018-05-14 22:42:39 +01:00
Jakub Sobon
a824210882
Defining options for the text widget. 2018-05-14 22:07:04 +01:00