From 18924bc784251ee5a2b27a658c9fbf974036f851 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 11 Aug 2025 17:21:38 +0900 Subject: [PATCH] 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. --- src/core/execute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/execute.c b/src/core/execute.c index a4de33baec..6cfa3fc6b5 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);