From d6fc8dcacbbf19538e61f3eea561dbc96d87bf99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Wed, 21 Oct 2020 12:45:57 +0200 Subject: [PATCH] Escape terminal title sequence --- spp.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/spp.pl b/spp.pl index 733a7ed..4fbb638 100644 --- a/spp.pl +++ b/spp.pl @@ -587,6 +587,7 @@ sub gen_term_title my $out = ''; $out .= "\\033]0;$main\\007" if $CONFIG{term_set_title} & 1; $out .= "\\033]1;$main\\007" if $CONFIG{term_set_title} & 2; + $out = "\\[$out\\]" if $out; return $out; }