pyte icon indicating copy to clipboard operation
pyte copied to clipboard

Add: ByteScreen, use_c1 option

Open eight04 opened this issue 11 months ago • 2 comments

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.

eight04 avatar Feb 28 '24 09:02 eight04

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?

superbobry avatar Mar 04 '24 11:03 superbobry

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?

eight04 avatar Mar 04 '24 11:03 eight04