diff options
| author | Kunal Mohan <44079328+kunalmohan@users.noreply.github.com> | 2022-01-03 22:18:22 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-03 22:18:22 +0530 |
| commit | 4496c4d4dc6e57fc1275c65bee324dfb3d3ce1b2 (patch) | |
| tree | baf8c1234c74f64ea933535d5c60f04c1d494e30 | |
| parent | docs(changelog): multi user tab clicking sync bug (diff) | |
| download | sl0ppij-4496c4d4dc6e57fc1275c65bee324dfb3d3ce1b2.tar.gz sl0ppij-4496c4d4dc6e57fc1275c65bee324dfb3d3ce1b2.tar.xz sl0ppij-4496c4d4dc6e57fc1275c65bee324dfb3d3ce1b2.zip | |
Pass active terminal title through to terminal emulator (#980)
| -rw-r--r-- | zellij-server/src/ui/pane_boundaries_frame.rs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/zellij-server/src/ui/pane_boundaries_frame.rs b/zellij-server/src/ui/pane_boundaries_frame.rs index 419dea79..f2052412 100644 --- a/zellij-server/src/ui/pane_boundaries_frame.rs +++ b/zellij-server/src/ui/pane_boundaries_frame.rs @@ -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}; @@ -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 } } |
