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
Jakub Sobon
7ee222ac58
Moving private libraries into internal subdirectory.
2019-02-23 21:09:38 -05:00
Jakub Sobon
b79c3fef2d
Switching termdash to EDS.
2019-02-20 01:18:44 -05:00
Jakub Sobon
286e5abd2f
Errors are no longer a special case in the EDS.
...
And changing event queue so that Pullers don't have to process an error.
2019-02-20 00:20:58 -05:00
Jakub Sobon
772fdae7cc
Moving eventqueue into new event directory.
2019-02-18 22:56:20 -05:00
Jakub Sobon
69b7799847
Adding licences.
2019-02-11 00:18:46 -05:00
Jakub Sobon
550afdd613
Licences and fixing data race.
2019-02-11 00:14:24 -05:00
Jakub Sobon
18a99caf16
Termbox now starts in 256 color mode by default.
2019-02-10 23:55:35 -05:00
Jakub Sobon
20c31cb800
Include newline when printing cell differences.
2019-01-20 16:21:16 -05:00
Jakub Sobon
486172e4f9
faketerm.Diff also prints out the rune differences.
...
Useful when they aren't obvious in their character forms.
2019-01-20 16:19:50 -05:00
Jakub Sobon
2071fd15bb
Support for 256 colors.
...
- Documenting color modes.
- Providing helper functions to set colors in different formats.
- Allowing users to set other than the 8 system colors.
Fixes #66
2019-01-13 21:53:26 -05: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
bb0e4b9a58
Move SetCell logic from faketerm to cell buffer.
2018-05-20 22:49:03 +01:00
Jakub Sobon
79218c9233
Fixing lint errors.
...
- Missing comments.
- Invalid comments.
- Stuttering public name.
2018-05-11 16:32:37 +01:00
Jakub Sobon
2473cd46d6
A function that draws a rectangle.
...
Also:
- implementing text trimming and wrapping.
- Switching log.Fatalf to panic() for more understandable test errors.
2018-05-06 19:28:52 +01:00
Jakub Sobon
6fe129c940
Implementing the infrastructure layer.
2018-04-23 01:05:54 +01:00
Jakub Sobon
0199ffbb9a
Supporting resize and events on the fake terminal.
2018-04-23 00:49:38 +01:00
Jakub Sobon
e18b9ba79b
Improving comment about thread un-safety.
2018-04-23 00:47:12 +01:00