Commit Graph

19 Commits

Author SHA1 Message Date
Jakub Sobon 06eb7623bd
Modifying imports 'internal' -> 'private'. 2020-04-10 15:26:45 -04:00
Jakub Sobon 96d136019e
Calculating container areas upon Draw only. 2019-03-28 22:30:09 -04:00
Jakub Sobon b7a6d70ff6 Merge branch 'master' into devel 2019-03-07 00:37:21 -05:00
Jakub Sobon 4465dced2d
Wait for subscribers to process events. 2019-03-02 18:24:10 -05:00
Jakub Sobon 275d95ad41
Noting that error handlers must be thread-safe. 2019-02-24 18:03:45 -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 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 6c03991fb9
Moving draw and event to internal. 2019-02-23 21:10:51 -05:00
Jakub Sobon 79a16f91a8
Updating comments for subscribers, since we now have the EDS. 2019-02-22 00:41:51 -05:00
Jakub Sobon 5a51763b2d
Throttling repetitive events towards screen redraw.
Redrawing the screen is the most expansive operation, we don't want to
do it every time an event happens (imagine fast scrolling mouse wheel).

Also adding missing licences.
2019-02-21 01:20:07 -05:00
Jakub Sobon d100f6fc24
Switching termdash test to common spinlock utility.
And delaying redraws to allow fast widgets to process the input event.
2019-02-20 23:35:26 -05:00
Jakub Sobon 37d557d30f
Switching container to EDS.
TODO: rewrite tests to use Subscribe().
2019-02-20 02:20:11 -05:00
Jakub Sobon b79c3fef2d
Switching termdash to EDS. 2019-02-20 01:18:44 -05:00
Jakub Sobon 4f86e6da85
Don't return from Run() while the goroutine is still running.
Fixes #60
2018-07-02 23:05:38 -04:00
Jakub Sobon 7ceec7a572
Support manually triggered redraw.
This can be a more viable option for some users as it is less resource
intensive. The user knows when the data in any of the widget changed and
thus can trigger a redraw. External events still redraw the terminal
immediately.

Done here:
- Added a controller for the manually triggered redraws.
- Added an example of using termdash with triggered redraw.
- Removing couple of races in the test by waiting for the event queue to
empty before comparing values and by moving the test of terminal resize
into the test that triggers redraws.
2018-06-18 20:13:20 +01:00
Jakub Sobon 09464a2db7
Improving error handling. 2018-05-07 21:30:38 +01:00
Jakub Sobon b42236a117
Adding missing licences. 2018-04-23 14:26:26 +01:00
Jakub Sobon 6fe129c940 Implementing the infrastructure layer. 2018-04-23 01:05:54 +01:00