mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-01 07:15:32 -04:00
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.
This commit is contained in:
parent
906c8f4d16
commit
b3d0215c38
6 changed files with 51 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue