Commit Graph

24 Commits

Author SHA1 Message Date
Caleb Bassi 5d65a22da1 Merge pull request #147 from kenan-rhoton/CloseInit
Init() cleanly after Close()
2018-08-16 23:04:33 -07:00
Deepak Guruswamy 4b7fc0a5fb Added support for mouse 2017-05-27 03:11:46 -07:00
Kenan Rhoton 6e522b9e10 Init() cleanly after Close() 2017-05-17 07:19:52 +02:00
bentx 3b3aa549db expose ResetHandlers 2017-04-08 20:09:47 +07:00
Zack Guo 86c275c69b Fix https://github.com/gizak/termui/issues/99 https://github.com/gizak/termui/issues/112
Now keyboard events will be handled in order, but the consequence is computation-intense may need to be moved to a seperate goroutine otherwise it may delay the next event call.
2017-04-06 17:20:54 +08:00
Weitao Zhou 75e0f771c4
Typo: renamed DefualtHandler to DefaultHandler 2017-01-17 16:12:49 +08:00
Zack Guo d921faeffe Update copyright 2017-01-14 01:07:43 -05:00
Zack Guo cfe1ea3b97 Update copyright info 2016-11-10 23:25:53 -05:00
MrWaggel ecd5df9a49 Added a EvtStream member function ResetHandlers()
A feature that I missed, it clears all the defined termui.Handle() calls.

Also a cleaner fix for https://github.com/gizak/termui/issues/92
2016-08-13 13:43:04 +02:00
gizak dada0699b6 Update doc string 2016-01-26 20:45:18 -05:00
gizak ad8b8b432b Merge branch 'v2' 2015-10-22 11:17:20 -04:00
gizak 2e6591a15e Add custom event handling 2015-10-13 12:45:03 -04:00
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
Zack Guo f9b0351285 Revert the last commit
Field termbox.Event field N remains in the last version	of termbox
2015-08-04 18:10:39 -04:00
Zack Guo 015d798c42 Fix 'termbox.Event has no field or method N' 2015-08-04 12:14:56 -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