Skip to content

Commit

Permalink
Pass active terminal title through to terminal emulator (#980)
Browse files Browse the repository at this point in the history
  • Loading branch information
kunalmohan authored Jan 3, 2022
1 parent 04fe184 commit 4496c4d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion zellij-server/src/ui/pane_boundaries_frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ use crate::ui::boundaries::boundary_type;
use crate::ClientId;
use ansi_term::Colour::{Fixed, RGB};
use ansi_term::Style;
use zellij_utils::pane_size::Viewport;
use zellij_utils::zellij_tile::prelude::{client_id_to_colors, Palette, PaletteColor};
use zellij_utils::{envs::get_session_name, pane_size::Viewport};

use unicode_width::{UnicodeWidthChar, UnicodeWidthStr};

Expand Down Expand Up @@ -561,6 +561,15 @@ impl PaneFrame {
.unwrap(); // goto row/col + boundary character
}
}
if self.is_main_client {
write!(
&mut vte_output,
"\u{1b}]0;Zellij ({}) - {}",
get_session_name().unwrap(),
self.title
)
.unwrap();
}
vte_output
}
}

0 comments on commit 4496c4d

Please sign in to comment.