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

77 Commits

Author SHA1 Message Date
Aniket Teredesai
bb460d221d add tcell's dim text style 2022-07-01 09:22:23 +05:30
Carson McManus
93ddcf4615 fix font modifiers test coverage and style nitpicks 2020-11-17 08:33:36 -05:00
Carson McManus
4946857fbd add tests for additional font modifiers 2020-11-16 00:49:21 -05:00
Carson McManus
eea25385e4 add remaining font modifiers: strikethrough, inverse, blink 2020-11-16 00:45:21 -05:00
Carson McManus
66d9d498b2 explicitly name import "tcell" 2020-11-15 15:18:32 -05:00
Jakub Sobon
41375b8935
Translating colors for backward compatibility with termbox-go. 2020-11-14 23:35:12 -05:00
Jakub Sobon
b4d53c1f6c
Removing commented-out code. 2020-11-14 23:25:58 -05:00
Jakub Sobon
503c0ada52
Fixing color setting for tcell.
Our tcell library incorrectly referenced tcell color values rather than
just names. The values aren't part of the public API and did change with
the update to v2.

This commit switches our tcell library to using the public constants
exported by the `tcell` project.

Also aligning our color definition of the first 16 colors with `tcell`
and Xterm. Adding two additional colors to make this change backward
compatible with `termbox-go`.
2020-11-14 23:21:07 -05:00
“Carson
4d320e3f2e upgrade tcell to v2.x 2020-11-14 16:47:55 -05:00
Jakub Sobon
3cbd993521
Making tcell the default in all demos and examples. 2020-11-14 01:09:07 -05:00
Jakub Sobon
212ae2c343 Merge branch 'devel' into lint 2020-11-14 00:49:37 -05:00
Jakub Sobon
b883d8b02f
Addressing some lint issues. 2020-11-14 00:44:45 -05:00
Jakub Sobon
e5e1397ce9
Adding test coverage to cell options. 2020-11-14 00:39:44 -05:00
“Carson
53530e7dc1 add tests for font modifier cell options 2020-11-13 02:46:39 -05:00
“Carson
f501a14afa have the termbox backend return an error when attempting to use italics or strikethrough 2020-11-13 02:15:57 -05:00
“Carson
50310f4d29 add font modifier cell options: bold, italic, underline. 2020-11-12 15:54:58 -05:00
Jakub Sobon
4beaac9cca
Stub out tcell.NewScreen so tests can pass headless. 2020-06-20 14:00:05 -04:00
Jakub Sobon
06eb7623bd
Modifying imports 'internal' -> 'private'. 2020-04-10 15:26:45 -04:00
kvnxiao
37ee2177ac Add missing Close() function to terminalapi.Terminal interface 2020-03-01 14:43:46 -05:00
kvnxiao
6246aba1f7 Change "invalid" to "unsupported" in comments 2020-03-01 14:24:10 -05:00
kvnxiao
95719be9f6 Make mouse event test case clearer 2020-03-01 14:23:53 -05:00
kvnxiao
95f5fe8fc9 Fix default clear style to use ColorDefault 2020-03-01 02:14:30 -05:00
kvnxiao
be7995369c Fix mouse button logic and tests 2020-03-01 01:54:36 -05:00
kvnxiao
1af531975d Fix linting 2020-03-01 01:25:50 -05:00
kvnxiao
c8ffedc2b8 Return nil mouseEvent for non-supported events 2020-03-01 01:19:49 -05:00
kvnxiao
1e970dcacd Return nil for non-termdash events 2020-03-01 01:14:37 -05:00
kvnxiao
f7578e54cc Fix tests for ColorDefault 2020-02-29 18:46:20 -05:00
kvnxiao
a0d3da0527 Fix a check in fixColor 2020-02-29 18:40:14 -05:00
kvnxiao
d270c6de17 Add missing license header 2020-02-29 18:26:10 -05:00
kvnxiao
299590e784 Fix a test case for fixColors on color mode 216 2020-02-29 18:09:20 -05:00
kvnxiao
2f2b13d319 Add event.Name() to keyboard key error message 2020-02-29 18:06:55 -05:00
kvnxiao
5f5aff3a94 Add cellOptsToStyle test 2020-02-29 18:03:36 -05:00
kvnxiao
c431b8c3bd Add fixColor test 2020-02-29 17:52:32 -05:00
kvnxiao
5cd12d9fce Add test for tcell options 2020-02-29 17:32:35 -05:00
kvnxiao
3fdaf659f2 Use tcell screen.Fill() to clear screen 2020-02-29 17:21:55 -05:00
kvnxiao
67c22d9015 Add license headers 2020-02-29 02:15:23 -05:00
kvnxiao
f01148c8fd Add color mode and clear style colors 2020-02-29 02:02:05 -05:00
kvnxiao
facb0e6743 Add missing comment 2020-02-29 02:02:05 -05:00
kvnxiao
4fcdf48ecb Fix mouse events 2020-02-29 02:02:05 -05:00
kvnxiao
b23d99cd8d Add tcell dependency as another terminal backend 2020-02-29 02:02:05 -05:00
Jakub Sobon
bda6223690
Don't split keyboard shortcuts.
It makes it hard to recognize when a shortcut is pressed and when a
single character is pressed. Do what termbox does and identify these
separately.

Obsoletes #20.
2019-04-20 17:10:59 -04:00
Jakub Sobon
ffbf88caed
Finishing unfinished comment. 2019-02-24 02:39:00 -05:00
Jakub Sobon
b25d20c8ae
Mouse and keyboard are also public. 2019-02-24 02:08:48 -05:00
Jakub Sobon
b74f46509b
Moving runewidth, segdisp and testdraw to internal. 2019-02-24 01:27:17 -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
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