Add XTVERSION response metadata to recording file

I would love if asciinema added the XTVERSION response (if any) from the terminal in the recording file. XTVERSION as documented by xterm:

CSI > Ps q
Ps = 0 ⇒ Report xterm name and version (XTVERSION). The
response is a DSR sequence identifying the version: DCS > |
text ST

My terminal (Ghostty) for example includes the full version string including the commit in this string so this would allow bug reports that share an asciinema file to have the exact version that reproduces it.

Thank you!

Hey Mitchell :wave:

I agree it could be useful :+1:

I think it should be straightforward to add. asciinema 3.0 already does something similar (querying for terminal theme, saving it in the file header) so this would be easy.

I’ll try to squeeze it in the final 3.0 release.

1 Like