aboutsummaryrefslogtreecommitdiff
path: root/ui-terminal.c
diff options
context:
space:
mode:
authorRudy Dellomas III <dther@dther.xyz>2024-04-21 20:25:40 +1000
committerRandy Palamar <randy@rnpnr.xyz>2024-04-29 08:36:44 -0600
commit596ec20dd81fc4a48a528bfed9e241343ee03eaa (patch)
tree9ece9e4212b1d770b33f8fd8317ff13d079f91eb /ui-terminal.c
parent62ccfe59ae63858dc5c21039e907a9277134d171 (diff)
downloadvis-596ec20dd81fc4a48a528bfed9e241343ee03eaa.tar.gz
vis-596ec20dd81fc4a48a528bfed9e241343ee03eaa.tar.xz
Emit an event (ui_draw) immediately before drawing the screen
This allows better control over styling, as well as potential for entirely new UI elements implemented entirely using the Lua API.
Diffstat (limited to 'ui-terminal.c')
-rw-r--r--ui-terminal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui-terminal.c b/ui-terminal.c
index 6ec1e41..09e618e 100644
--- a/ui-terminal.c
+++ b/ui-terminal.c
@@ -392,6 +392,7 @@ static void ui_draw(Ui *ui) {
ui_window_draw((UiWin*)win);
if (tui->info[0])
ui_draw_string(tui, 0, tui->height-1, tui->info, NULL, UI_STYLE_INFO);
+ vis_event_emit(tui->vis, VIS_EVENT_UI_DRAW);
ui_term_backend_blit(tui);
}