Skip to content

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