vte icon indicating copy to clipboard operation
vte copied to clipboard

Support for APC?

Open John-Toohey opened this issue 1 year ago • 4 comments

I am trying to use vte to parse APC commands, which it seems to ignore by setting the state to SosPmApcString and then Anywhere through the duration of the command. Would it be possible to adapt the Parser interface to support parsing these commands?

John-Toohey avatar Jan 21 '24 10:01 John-Toohey

Curious what you're parsing APC escapes for.

chrisduerr avatar Jan 21 '24 10:01 chrisduerr

Its a fair question (giving their long obsolescence), I'm trying to parse escape codes to use for a preview feature in an application I am writing and would, preferably, like to have support for the Kitty Graphics Protocol which requires the use of APC to send images to the terminal.

John-Toohey avatar Jan 21 '24 11:01 John-Toohey

Yeah that's fair. That shouldn't be difficult to add tbh, it mainly doesn't exist yet because I've had no use for it so far.

Are you interested in implementing this yourself?

chrisduerr avatar Jan 21 '24 11:01 chrisduerr

Indeed I would be interested in implementing it myself, I'll have a further look into the code and try and figure out how it works. My one concern is that the action/state enums seem to be saturated already? I'll look into it later!

John-Toohey avatar Jan 21 '24 12:01 John-Toohey