pyte icon indicating copy to clipboard operation
pyte copied to clipboard

Simple VTXXX-compatible linux terminal emulator

Results 59 pyte issues
Sort by recently updated
recently updated
newest added

This completes https://github.com/selectel/pyte/issues/178. pyte now understands `:`-delimited subparameters, but doesn't actually do anything with them (which is better than the previous behavior, where they'd get spewed to the screen buffer....

First off, apologies if I'm confusing any terminologies here. I've only recently started digging into the messy historical universe of TTYs. It's entirely possible this is an issue with how...

pyte current supports setting foreground/background color, but it only supports `;` delimited parameters. My understanding is that this is a legacy of xterm mis-interpreting some ancient specification: - https://invisible-island.net/xterm/xterm.faq.html#color_by_number >...

This commit replaces wcwidth dependency by a simple vendored module, leveraging python's built-in unicodedata. Notes: 1. `wcwidth()` function, provided by wcwidth library, is already decorated with `lru_cache(100)`. Hence following line...

## Summary - handle grapheme clusters when drawing characters - add tests for complex emoji rendering - update changelog ## Testing - `mypy pyte` - `pytest -q`

This is used in the majority of Nethack ttyrecs. There's a thing called https://en.wikipedia.org/wiki/DEC_Special_Graphics where if \e(0 is sent, it toggles some codes. Steps to reproduce: ```python import pyte screen...

I went looking for the `feed` signature on readthedocs, and found nothing. `attach` / `detach` / `select_other_charset` are also missing, FWIW.

Resolves #192 This commit fixes `HPA` character, which is `U+0060` according to https://vt100.net/docs/vt510-rm/HPA.html, but not `U+0027`.

Resolves #141 Superseeds #142 This PR adds support for `DECKPAM` and `DECKPNM` escape sequences, to set keypad mode. If such escape sequence is found `Stream` emits `Screen.set_keypad_mode()`, which sets `Screen.keypad_mode`...

Resolves #194 This PR adds `Screen.set_keyboard_flags()` event handler, to handle [progressive enhancement](https://sw.kovidgoyal.net/kitty/keyboard-protocol/#progressive-enhancement) events. The `Screen` class therefore maintains a stack of `Screen.keybord_flags`, which is managed by `set_keybord_flags()` handler, if `Stream`...