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. --- slave.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'slave.h') diff --git a/slave.h b/slave.h index 83891590..f7324704 100644 --- a/slave.h +++ b/slave.h @@ -3,6 +3,9 @@ #include +#include "terminal.h" + pid_t slave_spawn( int ptmx, int argc, const char *cwd, char *const *argv, const char *term_env, - const char *conf_shell, bool login_shell); + const char *conf_shell, bool login_shell, + const user_warning_list_t *warnings); -- cgit v1.3