Consider supporting adding custom APC handlers, similar to CSI/OSC handlers.
See original GitHub issueIt’s not clear to me if an APC (application program command – ESC_<string>ST
) could be handled by an application hosting xtermjs by using the EscHandler plumbing, but it would useful to allow it for commands run in the terminal to pass commands to the terminal hosting application. An example might be for an open <file>
command in the VS code terminal that emits a sequence to instruct VS Code to load <file>
into the editor, etc. Such a command could be written in batch, bash, powershell or anything that can write VT. This would allow very easy dispatch of editor commands from the terminal, should VS code opt to wire up an APC handler.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think we can close this issue? @oising Feel free to open a new issue if you have unanswered questions or ideas regarding the issue. Imho the big “picture discussion” is better done at the vscode thread.
Regarding extending the parser with more add… methods - I already have this on the schedule.
We can leave the APC discussion to https://github.com/microsoft/vscode/issues/77145, I’m not sure that’s the direction we want to go. But I think we should expose the handler API as suggested regardless.