tui: rework deferred-termcodes implementation

Try another approach to defer the termcodes. Seems less janky, but still
not perfect.

ref #7664
ref #7649
ref #7664
ref 27f9b1c7b0
This commit is contained in:
Justin M. Keyes
2017-12-11 23:05:36 +01:00
parent 6203c23449
commit 6b51c72e0c
5 changed files with 30 additions and 10 deletions

View File

@@ -31,13 +31,12 @@ struct ui_t {
bool ui_ext[UI_WIDGETS]; ///< Externalized widgets
int width, height;
void *data;
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "ui_events.generated.h"
#endif
void (*event)(UI *ui, char *name, Array args, bool *args_consumed);
void (*stop)(UI *ui);
void (*after_startup)(UI *ui);
};
#ifdef INCLUDE_GENERATED_DECLARATIONS