termtosvg
termtosvg copied to clipboard
Capture and preserve xterm title sequences.
Howdy!
I'd love to see incorporated into the window-like templates the ability to include the "window title" (/ "icon name") in the actual title area of the presented window-like interface. This would involve special handling for the following sequences:
-
ESC]0;stringBEL
— "set icon name and window title to string" -
ESC]1;stringBEL
— "set icon name to string" -
ESC]2;stringBEL
— "set window title to string"
For example, my shell's default window title becomes (after Zsh init and startup) [email protected] (10.0.1.22) - byobu — zsh
Ah, an idea; it would be nice if these were exposed as a callback executed whenever a new title is set; this would allow for animation (i.e. temporary hiding of the scrubber, replaced with the title for a time), marking a highlight point on the timeline, etc. Obv. a one-line default function to just swap the label text would suffice for the stock templates.
Essentially, this is a form of SRT subtitle for… a terminal stream.
Alternate/additional idea: store them as periods of time coverage, i.e. between 0:20 and 1:15 the title is "Nano (.vimrc)", to allow for easy determination when seeking. (I'm imagining a tooltip indicating the title at the scrub head position while hovering/dragging.)