Commit Graph

10 Commits

Author SHA1 Message Date
gizak
e0dec9dbb9 Move widget back to root 2015-10-07 14:25:59 -04:00
gizak
196d9aae34 Theme map lookup 2015-09-21 03:11:58 -04:00
gizak
1cb28b0a3c Fix EventStream.match randomness behaviour 2015-09-18 21:07:57 -04:00
gizak
e89b10ff4f Finish Event 2015-09-18 11:41:44 -04:00
gizak
3ea00a7476 WIP Refine 2015-08-30 23:03:47 -04:00
gizak
3036ef125c WIP update Event struct 2015-08-19 15:22:53 -04:00
Zack Guo
283c3a36f2 WIP Wrap up Event 2015-08-08 19:07:32 -04:00
Matteo Kloiber
821f8bfd95 Fixes unsafe pointer madness.
`func uiEvt(e termbox.Event) Event` used to change the type of termbox.Event to Event by
using some pointer-cast magic[1], which could cause an overflow if `termbox.Event` changes
its structure.
I'd rather just have `type Event termbox.Event` but that would break backwards compatibility.

Warning: A buffer overflow could cause a serious security issue but it is very unlikely that
anyone could exploit that (though not impossbible). You'd need to push a upstream update to
termbox, which would tweak termbox.Event's structure. Still, this issue should be fixed and
unsafe should never be used.

[1] it used to get the address of termbox.Event and just cast a Event pointer
2015-04-15 13:49:31 +02:00
gizak
d76e946a46 Add copyright https://github.com/gizak/termui/issues/25 2015-04-09 00:21:36 -04:00
gizak
7be8d021fd Add Event
Port termbox-go Event
Hide away termbox-go event dependency
Add Event channel multiplexer
Adjuest examples
Next event system commit will work on fully concurrency on a different branch, master
will stay on single rountine
2015-04-08 12:06:47 -04:00