aboutsummaryrefslogtreecommitdiff
path: root/slave.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 /slave.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 'slave.h')
-rw-r--r--slave.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/slave.h b/slave.h
index 83891590..f7324704 100644
--- a/slave.h
+++ b/slave.h
@@ -3,6 +3,9 @@
#include <sys/types.h>
+#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);