You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the expected behavior is this (i rendered this gif from the demo using gifcast, which uses xterm.js for rendering)
Spoiler because it's quite obnoxious lol
since this is likely a very low priority feature (understandably), i did some digging on my own to see if i could make it work. i was able to hack together some code to parse the sequences, but i got stumped when it came to actually updating the colors in the palette. i messed around with updating the pen's colors, but i couldn't find a way to refresh the entire screen.
i mostly just wanted to document my exploration here. if you can nudge me in the right direction, i might be able to put up a pull request in the future. cheers!
The text was updated successfully, but these errors were encountered:
Indeed OSC 4 is not supported at the moment. To make it work, it would take at least to implement the following:
recognizing OSC 4 in avt,
exposing it to the player from avt::Vt
adding support for dynamic themes in the player (the way the player defines colors today, via CSS custom props, should make it relatively straightforward)
ensuring that a theme is reset to the initial one when rewinding (seeking back) in the player
This is doable, however non-trivial, and at the moment it doesn't seem like worth the trouble (given other priorities).
hi!
i've been messing around with OSC 4 sequences lately to change the terminal's color palette on the fly. i noticed asciinema doesn't support it
it's kinda difficult to find good documentation for these sequences, but the best i've seen so far is https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Operating-System-Commands
i created a short demo:
the expected behavior is this (i rendered this gif from the demo using gifcast, which uses xterm.js for rendering)
Spoiler because it's quite obnoxious lol
since this is likely a very low priority feature (understandably), i did some digging on my own to see if i could make it work. i was able to hack together some code to parse the sequences, but i got stumped when it came to actually updating the colors in the palette. i messed around with updating the pen's colors, but i couldn't find a way to refresh the entire screen.
i mostly just wanted to document my exploration here. if you can nudge me in the right direction, i might be able to put up a pull request in the future. cheers!
The text was updated successfully, but these errors were encountered: