Commit Graph

35 Commits

Author SHA1 Message Date
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 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 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 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 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