pyte
pyte copied to clipboard
Simple VTXXX-compatible linux terminal emulator
I have a situation where I need to store the state of the terminal at some point and restore it later. For pyte's `Screen`, is it sufficient that I a)...
When I `print(str.encode(screen.display[0]))`, it seems like color is not encoded.
# What is this PR about? Optimization. My goal was to make `pyte` faster and lighter specially for large geometries (think in a screen of 240x800 or 2400x8000). # Results...
https://github.com/selectel/pyte/blob/efd19f2836806c3fa9f3928aff0d93fe8a7bd14a/pyte/graphics.py#L100
The call to `setup` on `setup.py` should have a keyword argument that defines the minimum Python version required for `pyte`. Something like: ```python setup(name="pyte", version="0.8.1", packages=["pyte"], python_requires='>=3.7', ... ) ```...
Hi there. I'd love to see an example on how to use this to test a TUI. Particularly, my project uses https://github.com/tmbo/questionary to ask questions to the user and print...
The core of this proposal is to introduce an intermediate form of parsed data between the stream and the screen. Rather than the screen feeding its parsed results directly to...
Proposed fix for #141
It was only after digging through a lot of pyte's code that I realized that it isn't "broken"; instead, it just starts in UTF8 mode. However, a lot of software...
Reproduction example: ```python import pyte screen = pyte.Screen(80, 24) screen.draw("\x02abacaba") print(screen.display[0]) # returns spaces only, should return abacaba ```