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

Add: ByteScreen, use_c1 option #174

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

eight04
Copy link
Contributor

@eight04 eight04 commented Feb 28, 2024

Fixes #118

This PR adds two features:

  1. ByteScreen - a screen that accepts any char, including unprintable/zero-width chars e.g. (\xad).
  2. A new argument ByteStream(screen, use_c1=False) - allowing us to stop parsing CSI_C1/OSC_C1 bytes so they can be piped to ByteScreen.

@superbobry
Copy link
Collaborator

Thanks @eight04!

pyte is more or less in maintenance mode, so I would much rather keep the API surface unchanged. I hope it's okay.

Looking at the diff, you should be able to keep these modifications local to your project?

@eight04
Copy link
Contributor Author

eight04 commented Mar 4, 2024

Currently I package the modified version of pyte into my app:
https://github.com/eight04/ptt-mail-backup/blob/9518d2795ffb2193b1fba7bee287a7e32fd12900/cute.py#L10

Do you know any pyte alternative that accepts bytes?

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

Successfully merging this pull request may close these issues.

How do you specify a different encoding?
2 participants