onIconChange property

void Function(String title)? onIconChange
getter/setter pair

Function that is called when the program requests the terminal to change the icon of the window. icon is the name of the icon.

Only setIconName calls it: libghostty-vt 1.0.0 does not report the icon name sequences (OSC 0 and 1) separately from the title.

Implementation

void Function(String icon)? onIconChange;