Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow custom handler for specific escaped sequence? #94

Open
randy3k opened this issue Jul 13, 2017 · 1 comment
Open

allow custom handler for specific escaped sequence? #94

randy3k opened this issue Jul 13, 2017 · 1 comment

Comments

@randy3k
Copy link

randy3k commented Jul 13, 2017

Right now, the handlers for OSC sequences are hardcoded and it doesn't support other codes other than 01 and 02. Is there any chance to allow user to specific a handler if a certain sequence is observed. One of such use cases is to detect the sequence

ESC ] 1337 ; File = [optional arguments] : base-64 encoded file contents ^G

which is used in imgcat to display images. It will allow applications to show images in their terminals.

@superbobry
Copy link
Collaborator

Hi Randy, yep, this is something I'd like to do. Ideally, pyte should have a dict mapping OSC commands to Screen slots, similar to how it is done for other ESC sequences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants