Commit Graph

24 Commits

Author SHA1 Message Date
Oliver fed6446838 Added the possibility to provide your own tcell.Screen object to Application. Resolves #159 2018-09-05 13:26:22 +02:00
Oliver cc64ead1ed Made Application.Draw() thread-safe (for real this time). Fixes #136 2018-07-27 16:30:50 +02:00
Oliver 83483397e8 Cosmetic improvements. 2018-06-28 14:49:42 +02:00
Konstantin Vorobyev 01a39a486d Review feedback 2018-06-20 19:32:19 +02:00
Konstantin Vorobyev 2ac0e9e086 Block main event loop with mutex during Suspend() call 2018-06-20 17:04:03 +02:00
Oliver 11727c933b Added suspended mode to Application. (Swallows one key event, tcell issue pending.) Resolves #70 2018-03-13 08:16:09 +01:00
Oliver 45acc0d895 Added getters for some callback functions. Resolves #65 2018-03-10 23:30:49 +01:00
Oliver c96894c0cf Bugfix which caused a crash in Table class. Fixes #67 2018-03-10 12:59:42 +01:00
Oliver c2f07f9548 Some housekeeping. 2018-03-05 16:37:10 +01:00
Oliver 1b155a1def Application now provides direct access to the screen object via before/after-draw callback functions. Resolves #59 2018-02-20 17:15:42 +01:00
Oliver 4db30f9ed4 "FieldLength" is now "FieldWidth" everywhere for clarity and consistency. Sorry for this breaking change. It is better in the long run. 2018-01-17 21:17:59 +01:00
Oliver 626453b2a6 All primitives now offer a way to intercept all key events sent to them. Also made the global key event intercept handler more general/consistent. Resolves #22 2018-01-14 21:29:34 +01:00
Oliver 4153189e1b A resize event should have the screen cleared before redrawing. Fixes #19 2018-01-13 12:43:12 +01:00
Oliver fdab2627c3 Calling Application.Draw() for global key handlers which steal the event. 2018-01-12 17:39:58 +01:00
Oliver 17c785e1f8 Application does not lock on PollEvent() call anymore. Should resolve gridlocks when calling SetRoot() in goroutines. Resolves #6 2018-01-11 11:54:22 +01:00
Oliver 8c9be84ef8 Various improvements. 2018-01-01 21:50:20 +01:00
Oliver 60313b7f25 SetRoot() also sets focus. 2018-01-01 17:16:36 +01:00
Oliver 9659be0e90 No need to explicitly hide the cursor in no-cursor primitives. 2017-12-28 22:19:36 +01:00
Oliver 1cc5331a5c Fixed focus delegation. 2017-12-27 22:55:50 +01:00
Oliver 3670319cd6 Fixed a number of bugs and added missing useful functions. 2017-12-27 16:04:21 +01:00
Oliver 6ba3fef9bc Added a method to Application to intercept key presses. 2017-12-26 17:34:58 +01:00
Oliver 8f59d491ee Added Table primitive. Still ironing out some minor issues. 2017-12-26 01:07:30 +01:00
Oliver f5788cfc52 Added regions and highlights to TextView. 2017-12-24 00:08:52 +01:00
Oliver 111dda7788 Fixed inconsistent filename. 2017-12-24 00:08:31 +01:00