Skip to content
This repository has been archived by the owner on Jun 16, 2020. It is now read-only.

Capture and preserve xterm title sequences. #98

Open
amcgregor opened this issue Jun 14, 2019 · 1 comment
Open

Capture and preserve xterm title sequences. #98

amcgregor opened this issue Jun 14, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@amcgregor
Copy link

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

@nbedos nbedos added the enhancement New feature or request label Jun 14, 2019
@amcgregor
Copy link
Author

amcgregor commented Jun 17, 2019

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.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants