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.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'terminal.c') diff --git a/terminal.c b/terminal.c index 81592710..6b8ed69d 100644 --- a/terminal.c +++ b/terminal.c @@ -943,7 +943,8 @@ term_init(const struct config *conf, struct fdm *fdm, struct reaper *reaper, /* Start the slave/client */ if ((term->slave = slave_spawn( term->ptmx, argc, term->cwd, argv, - conf->term, conf->shell, conf->login_shell)) == -1) + conf->term, conf->shell, conf->login_shell, + &conf->warnings)) == -1) { goto err; } -- cgit v1.3