aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortfgast <tfgast@users.noreply.github.com>2022-02-24 02:22:24 -0800
committerGitHub <noreply@github.com>2022-02-24 11:22:24 +0100
commitcef3f1e408144093b09ab4882ad81bd2e8b33431 (patch)
tree50d4921c43e086268bde4f1dea4eeabddf9f32ad
parentfix(style): remove unnecessary borrow operators (#1084) (diff)
downloadsl0ppij-cef3f1e408144093b09ab4882ad81bd2e8b33431.tar.gz
sl0ppij-cef3f1e408144093b09ab4882ad81bd2e8b33431.tar.xz
sl0ppij-cef3f1e408144093b09ab4882ad81bd2e8b33431.zip
fix(terminal): ensure Title doesn't overrun (#1094)
The set title escape code needs to be terminated with a bell character. See https://tldp.org/HOWTO/Xterm-Title-3.html
-rw-r--r--zellij-server/src/ui/pane_boundaries_frame.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/zellij-server/src/ui/pane_boundaries_frame.rs b/zellij-server/src/ui/pane_boundaries_frame.rs
index c4dfc0fd..07cae4ac 100644
--- a/zellij-server/src/ui/pane_boundaries_frame.rs
+++ b/zellij-server/src/ui/pane_boundaries_frame.rs
@@ -605,7 +605,7 @@ impl PaneFrame {
}
let vte_output = if self.is_main_client {
Some(format!(
- "\u{1b}]0;Zellij ({}) - {}",
+ "\u{1b}]0;Zellij ({}) - {}\u{07}",
get_session_name().unwrap(),
self.title
))