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
This commit is contained in:
tfgast 2022-02-24 02:22:24 -08:00 committed by GitHub
parent 3346238a6b
commit cef3f1e408
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -605,7 +605,7 @@ impl PaneFrame {
} }
let vte_output = if self.is_main_client { let vte_output = if self.is_main_client {
Some(format!( Some(format!(
"\u{1b}]0;Zellij ({}) - {}", "\u{1b}]0;Zellij ({}) - {}\u{07}",
get_session_name().unwrap(), get_session_name().unwrap(),
self.title self.title
)) ))