From b3d0215c388c51a7e9838d16fe06023844af5c8b Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Wed, 29 Jul 2020 19:42:12 +0200 Subject: term: add capability to print warnings *inside* the terminal This is intended to be used to print e.g. deprecation warnings inside the terminal, *before* the shell is started. --- terminal.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index 31316e37..db3ec555 100644 --- a/terminal.h +++ b/terminal.h @@ -206,6 +206,12 @@ enum term_surface { TERM_SURF_BUTTON_CLOSE, }; +struct user_warning { + enum { USER_WARNING_DEPRECATION } kind; + char *text; +}; +typedef tll(struct user_warning) user_warning_list_t; + struct terminal { struct fdm *fdm; struct reaper *reaper; -- cgit v1.3