aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-07-29 17:42:12 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-07-29 17:42:12 +0000
commitb3d0215c388c51a7e9838d16fe06023844af5c8b (patch)
treea9a2e0033ce38cc0b23d9306365ef81abc0ad584 /terminal.h
parentchangelog: update scrollback indicator entry to reflect moved options (diff)
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.
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h6
1 files changed, 6 insertions, 0 deletions
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;