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

56 Commits

Author SHA1 Message Date
Jakub Sobon
d3db859678
Adding licence. 2018-05-14 22:42:39 +01:00
Jakub Sobon
d6c153fbaf
Implementing the text widget.
And adding a demo.
2018-05-14 22:16:14 +01:00
Jakub Sobon
4c54b8a46e
Adding an object that tracks the scrolling state. 2018-05-14 22:13:16 +01:00
Jakub Sobon
7d14d2219f
Adding line scanner.
The line scanner identifies and counts lines in the input text and
performs wrapping if required.
2018-05-14 22:12:08 +01:00
Jakub Sobon
e786777410
Defining options for text written to the widget.
Each set of options applies to a range of characters equal to the length
of the text added.

E.g. on write calls like:
Write("text", opts1)
Write("long text", opts2)

The two passed options will be stored as:
opts1 for byte range low:0, high:4
opts2 for byte range low:4, high:13

The text itself will be stored in a bytes.Buffer.
2018-05-14 22:08:53 +01:00
Jakub Sobon
a824210882
Defining options for the text widget. 2018-05-14 22:07:04 +01:00