Commit Graph

126 Commits

Author SHA1 Message Date
Jakub Sobon b98948326b
Comment from @chipmunkie. 2018-06-13 17:28:32 +01:00
Jakub Sobon 870e1bda00 Merge branch 'master' into bugfix-rune-count 2018-06-04 17:46:41 +01:00
Jakub Sobon c68e916c02
Move description above the image. 2018-06-04 17:46:21 +01:00
Jakub Sobon 405812665a
Merge branch 'master' into bugfix-rune-count 2018-06-04 17:43:30 +01:00
Jakub Sobon 4a65691668
Merge pull request #38 from mum4k/text-widget/6/wide-runes
Adds full-width rune support.
2018-06-04 17:42:30 +01:00
Jakub Sobon 5fd79c5d9e
Merge branch 'master' into text-widget/6/wide-runes 2018-06-04 17:39:02 +01:00
Jakub Sobon 1c17cb36f2
Updated doc as per comment. 2018-06-04 16:16:51 +01:00
Jakub Sobon 3969009573
Correcting link to the license file 2018-05-27 19:41:21 +01:00
Jakub Sobon bd92fdbabe
Adding badges for goreportcard and license.
Fixes #31
2018-05-27 19:40:08 +01:00
Jakub Sobon e5ca7023ef
Updating the gaugedemo image.
It contains full-width runes.
2018-05-27 19:32:25 +01:00
Jakub Sobon 945b48f4a3
Gauge widget now supports full-width runes. 2018-05-27 19:29:42 +01:00
Jakub Sobon 8a1bb34b05
Generalized text trimming logic.
So it can be reused in widgets.

Also adding some missing default values for options.
2018-05-27 19:28:49 +01:00
Jakub Sobon c148d8c171
Alignment now supports full-width runes. 2018-05-27 19:28:09 +01:00
Jakub Sobon 9786171a7a
Faketerm and diff on it supports partial cells.
Don't print out partial cells (cells that don't really exist since the
previous cell contains a full-width rune).
2018-05-27 19:27:11 +01:00
Jakub Sobon 7adc901811
Merge pull request #32 from mum4k/text-widget/1/widget-options
[1/5] Defining options for the text widget.
2018-05-27 16:37:04 +01:00
Jakub Sobon d21db77c79
Merge pull request #33 from mum4k/text-widget/2/write-options
[2/5] Defining options for text written to the widget.
2018-05-27 16:33:14 +01:00
Jakub Sobon e3a4106c4b
Merge pull request #34 from mum4k/text-widget/3/line-scanner
[3/5] Adding line scanner.
2018-05-27 16:30:36 +01:00
Jakub Sobon a211d11f6f
Merge pull request #35 from mum4k/text-widget/4/scroll-tracker
[4/5] Adding an object that tracks the scrolling state.
2018-05-27 16:27:52 +01:00
Jakub Sobon c7aaaed3ef
Merge pull request #36 from mum4k/text-widget/5/widget
[5/5] Implementing the text widget.
2018-05-27 16:23:28 +01:00
Jakub Sobon 367af3f86d
Merge branch 'text-widget/5/widget' into text-widget/6/wide-runes 2018-05-27 16:21:14 +01:00
Jakub Sobon 126cb00247
Rename newText field to contentChanged. 2018-05-27 16:15:56 +01:00
Jakub Sobon 06097229a9
Merge branch 'text-widget/4/scroll-tracker' into text-widget/5/widget 2018-05-27 16:12:25 +01:00
Jakub Sobon 6ab8088f51
Improving comments to make the scroll.go file more understandable. 2018-05-27 16:11:18 +01:00
Jakub Sobon c2db521710
Merge branch 'text-widget/3/line-scanner' into text-widget/4/scroll-tracker 2018-05-27 15:51:25 +01:00
Jakub Sobon 39c624a84c
Making it more obvious what width in the test cases is.
- renaming it to cvsWidth.
- adding a comment explaining that it is the width of the canvas.
2018-05-27 15:49:13 +01:00
Jakub Sobon 7104472cfa
Adding the text widget to the main README. 2018-05-20 23:27:57 +01:00
Jakub Sobon 929bf2b8fc
The text widget now supports full-width runes.
Refactoring the draw() implementation to make it more readable:
- taking out the line trimming logic.
- taking out the drawing of the scroll up/down markers.
2018-05-20 22:51:38 +01:00
Jakub Sobon c2dab55b50
The draw package now supports full-width runes. 2018-05-20 22:50:57 +01:00
Jakub Sobon ba2cb94100
Full-width rune support in the canvas.
- SetCell now returns the number of occupied cells.
- Apply skips over partial cells.
2018-05-20 22:50:07 +01:00
Jakub Sobon bb0e4b9a58
Move SetCell logic from faketerm to cell buffer. 2018-05-20 22:49:03 +01:00
Jakub Sobon 0049acbd01
Full-width rune support in the cell buffer.
- don't allow partial overwrite of a full-width rune.
- don't allow placement of a full-width rune if it doesn't fit.
- allow callers to also read from the canvas (read-only).
2018-05-20 22:47:37 +01:00
Jakub Sobon ecb27cd1c5
Adding licence. 2018-05-14 22:45:40 +01:00
Jakub Sobon 4f65598b39 Merge branch 'text-widget/4/scroll-tracker' into text-widget/5/widget 2018-05-14 22:45:29 +01:00
Jakub Sobon a386289162
Adding licence. 2018-05-14 22:44:49 +01:00
Jakub Sobon 6bbd64a30d Merge branch 'text-widget/3/line-scanner' into text-widget/4/scroll-tracker 2018-05-14 22:44:41 +01:00
Jakub Sobon 2f210f3ab9
Adding licence. 2018-05-14 22:44:18 +01:00
Jakub Sobon d6cd0106fb Merge branch 'text-widget/2/write-options' into text-widget/3/line-scanner 2018-05-14 22:44:08 +01:00
Jakub Sobon a3dfd1a4a5
Adding licence. 2018-05-14 22:43:48 +01:00
Jakub Sobon d0ca7ec5f5 Merge branch 'text-widget/1/widget-options' into text-widget/2/write-options 2018-05-14 22:43:36 +01:00
Jakub Sobon d3db859678
Adding licence. 2018-05-14 22:42:39 +01:00
Jakub Sobon 8df67c6d04
Merge branch 'text-widget/4/scroll-tracker' into text-widget/5/widget 2018-05-14 22:35:10 +01:00
Jakub Sobon a13c1f6be2
Merge branch 'text-widget/3/line-scanner' into text-widget/4/scroll-tracker 2018-05-14 22:34:48 +01:00
Jakub Sobon 6b39babddf Merge branch 'text-widget/2/write-options' into text-widget/3/line-scanner 2018-05-14 22:34:10 +01:00
Jakub Sobon bb73338abb
Merge branch 'text-widget/1/widget-options' into text-widget/2/write-options 2018-05-14 22:33:46 +01:00
Jakub Sobon 2f384b3b1c
Merge branch 'master' into text-widget/1/widget-options 2018-05-14 22:33:05 +01:00
Jakub Sobon b98013ea45
Removing commit that doesn't belong to this history. 2018-05-14 22:32:07 +01:00
Jakub Sobon cd35405fd7
Merge pull request #28 from mum4k/lint_errors
Fixing lint errors.
2018-05-14 22:20:18 +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