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

48 Commits

Author SHA1 Message Date
Jakub Sobon
e6a00d5685
Merge pull request #198 from mum4k/dot-display
Support displaying the dot character in SegmentDisplay.
2019-04-30 23:14:41 -04:00
Jakub Sobon
a8d038e6e7
Renaming align.go to alignfor.go.
So that file name matches package name.
2019-04-30 23:03:04 -04:00
Jakub Sobon
f13f732a66
More test coverage for dotseg.
Also the demo of segment display now uses a colon.
2019-04-30 23:02:14 -04:00
Jakub Sobon
6578c20aea More test coverage. 2019-04-30 16:04:25 -04:00
Jakub Sobon
6159007466
The SegmentDisplay now uses dot segment for dots and colons. 2019-04-30 00:00:37 -04:00
Jakub Sobon
939f8fe199
A segment display that can show three dots. 2019-04-29 23:11:55 -04:00
Jakub Sobon
a591f95d29
Factoring out function that calculates segment size. 2019-04-29 22:56:59 -04:00
Jakub Sobon
b8a6427d47
Functions that move areas up and down. 2019-04-29 22:55:49 -04:00
Jakub Sobon
f81cb554b0
Skeleton of the dotseg package. 2019-04-28 23:34:02 -04:00
Jakub Sobon
27c830cebf
Adding licences. 2019-04-28 23:12:55 -04:00
Jakub Sobon
57b9e78dc8
Refactoring sixteen.
Moving out code that is common to all segment display types.
2019-04-28 23:08:34 -04:00
Jakub Sobon
0ef875039b
Fixing lint issues found on Go report card. 2019-04-28 22:44:44 -04:00
Jakub Sobon
4391f3846d
Adding HSplitCells into the area package. 2019-04-28 20:14:26 -04:00
Jakub Sobon
88d4632adf
Correctly handle setting cells to zero values. 2019-04-24 22:58:00 -04:00
Jakub Sobon
f8fddfcef2
Function that splits area after a number of cells. 2019-04-20 00:45:05 -04:00
Jakub Sobon
da70101c28 Merge branch 'devel' into text-input 2019-04-19 00:03:15 -04:00
Jakub Sobon
afe70553e5 Merge branch 'devel' into text-input 2019-04-18 23:57:35 -04:00
Jakub Sobon
5dd1aff803
Advancing to Go1.10.
- switching to math.Round and deleting out clone.
- switching all bytes.Buffer instances to strings.Builder.
2019-04-18 22:55:05 -04:00
Xabier Larrakoetxea
2ae5ca1dcb
Simplify MinMax result float checks on test
Signed-off-by: Xabier Larrakoetxea <slok69@gmail.com>
2019-04-18 20:32:30 +02:00
Xabier Larrakoetxea
9b25e35172
Make MinMax return NaN when all values are NaN
Signed-off-by: Xabier Larrakoetxea <slok69@gmail.com>
2019-04-17 13:40:32 +02:00
Xabier Larrakoetxea
42c2731286
Allow 'no values' on linechart represented by NaN float64 that will be displayed as empty cells
Signed-off-by: Xabier Larrakoetxea <slok69@gmail.com>
2019-04-14 10:16:44 +02:00
Jakub Sobon
2cfaf25b9b
Initial functionality and tests for the field editor. 2019-04-07 23:31:41 -04:00
Jakub Sobon
10d4a55348
Provide metadata to widgets when drawing. 2019-04-03 23:13:18 -04:00
Jakub Sobon
09503103a7
Utilities that safely shrink an area. 2019-03-03 00:18:41 -05:00
Jakub Sobon
b020770733
Moving widgetapi out of internal.
This will allow external users to develop their own widgets.
2019-03-02 22:00:07 -05:00
Jakub Sobon
c43e453038
Text validation moved to the wrap package. 2019-03-02 17:46:03 -05:00
Jakub Sobon
f102632bd4
Implementing AtWords wrapping mode. 2019-03-02 16:44:54 -05:00
Jakub Sobon
87cab66617
Simplifying the text widget.
This results in a better line wrapping abstraction which now works on
cells. Cells contain both the rune and the cell options which were
awkward to track separately.
2019-02-28 00:50:16 -05:00
Jakub Sobon
61aca3fb62
Removing Text's dependency on wrap.Needed.
It was rune based and thus incompatible with word wrapping.
2019-02-25 00:33:27 -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
50c00a2c8f
Moving fakewidget to the internal subdirectory. 2019-02-24 22:36:09 -05:00
Jakub Sobon
984f37245d
Factoring private type buffer out of cell. 2019-02-24 16:29:44 -05:00
Jakub Sobon
0938ae91d8
Refactoring internal functions from align to internal/alignfor. 2019-02-24 15:44:13 -05:00
Jakub Sobon
85902cf11a
Button is internal. 2019-02-24 02:09:27 -05:00
Jakub Sobon
b25d20c8ae
Mouse and keyboard are also public. 2019-02-24 02:08:48 -05:00
Jakub Sobon
98394c921a
Moving draw back to internal.
Adding test for linestyle.
2019-02-24 01:54:37 -05:00
Jakub Sobon
b74f46509b
Moving runewidth, segdisp and testdraw to internal. 2019-02-24 01:27:17 -05:00
Jakub Sobon
bf61ca1479
Moving draw out of internal. 2019-02-24 01:20:03 -05:00
Jakub Sobon
97ec73069f
Moving align, cell and terminalapi back from internal. 2019-02-24 01:13:26 -05:00
Jakub Sobon
8df9e3307c
Moving faketerm to internal. 2019-02-24 01:09:23 -05:00
Jakub Sobon
bf38f10d25
Moving terminal back to public. 2019-02-24 01:04:57 -05:00
Jakub Sobon
5ac468c10a
Moving terminal, terminalapi and widgetapi to internal subdirectory.
And adding a README under internal.
2019-02-23 21:19:16 -05:00
Jakub Sobon
55efbe07fe
Moving numbers to internal subdirectory. 2019-02-23 21:16:13 -05:00
Jakub Sobon
923d57f442
Moving trig into numbers subdirectory. 2019-02-23 21:14:51 -05:00
Jakub Sobon
d177ad792e
Moving scripts to internal subdirectory. 2019-02-23 21:12:41 -05:00
Jakub Sobon
2ff1818c0e
Moving keyboard and mouse to internal. 2019-02-23 21:11:50 -05:00
Jakub Sobon
6c03991fb9
Moving draw and event to internal. 2019-02-23 21:10:51 -05:00
Jakub Sobon
7ee222ac58
Moving private libraries into internal subdirectory. 2019-02-23 21:09:38 -05:00