Tags: jquast/blessed
Tags
Improved Sixel height and width, on_resize.py improved (#320) Improve sixel size order-preference by suggested implementation from @j4james, pexpect/ptyprocess#79 (comment) Pixel/Window and Sixel sizes are different because there is almost always some "remainder" in the margins of a window: <img width="298" height="276" alt="image" src="https://github.com/user-attachments/assets/5a3badef-35d0-4431-99f9-9031ece511c6" /> Sixel cannot draw in the black margin areas (smaller). on_resize.py ------------------ The example script and surrounding documentation was improved to make this distinction clear, and, design tips on how "safely" use signal handlers as well as "de-bouncing" in our example. Some example outputs of bin/on_resize.py: - Konsole ``height=29, width=143, pixel_height=764, pixel_width=1574, sixel_height=754, sixel_width=1573`` - Bobcat ``height=23, width=115, pixel_height=0, pixel_width=0, sixel_height=529, sixel_width=1150`` - kitty ``height=44, width=160, pixel_height=880, pixel_width=1440, sixel_height=0, sixel_width=0`` (no sixel) - ghostty ``height=24, width=119, pixel_height=528, pixel_width=1190, sixel_height=0, sixel_width=0`` (no sixel)
Merge pull request #275 Closes #273 by @grayjk, > The following code enters an infinite loop: import blessed blessed.Terminal().wrap('\u5973', 1) This PR fixes it by explicit check: when - the given individual sequence is of length '2' - and the wrap width is '1' - and the cur_len is '0' we cannot break down this "Wide" character any further -- so it is allowed to "flow outside" the given cell.
PreviousNext