Skip to main content

set_icon_name

Function set_icon_name 

Source
pub fn set_icon_name(name: &str) -> String
Expand description

Build an OSC sequence to set the terminal icon name.

This is the text label terminals show in taskbars, docks, and tab overviews (for example iTerm2, Windows Terminal, Kitty, Ghostty, and WezTerm). It pairs with set_window_title: emulators that keep icon and title separate honor OSC 1, while OSC 0 aliases both.