From: Yu Watanabe Date: Mon, 11 Aug 2025 08:21:38 +0000 (+0900) Subject: core: do not print OSC sequence on reverting TTY settings when running on a dumb... X-Git-Tag: v258-rc3~45^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18924bc784251ee5a2b27a658c9fbf974036f851;p=thirdparty%2Fsystemd.git core: do not print OSC sequence on reverting TTY settings when running on a dumb terminal Like we do in prepare_terminal() in exec-invoke.c. --- diff --git a/src/core/execute.c b/src/core/execute.c index a4de33baec6..6cfa3fc6b5b 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -180,7 +180,7 @@ void exec_context_tty_reset(const ExecContext *context, const ExecParameters *pa if (r < 0) log_debug_errno(r, "Failed to configure TTY dimensions, ignoring: %m"); - if (!sd_id128_is_null(invocation_id)) { + if (!sd_id128_is_null(invocation_id) && exec_context_shall_ansi_seq_reset(context)) { sd_id128_t context_id; r = osc_context_id_from_invocation_id(invocation_id, &context_id);