Improved Sixel height and width, on_resize.py improved #320
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:

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:
height=29, width=143, pixel_height=764, pixel_width=1574, sixel_height=754, sixel_width=1573height=23, width=115, pixel_height=0, pixel_width=0, sixel_height=529, sixel_width=1150height=44, width=160, pixel_height=880, pixel_width=1440, sixel_height=0, sixel_width=0(no sixel)height=24, width=119, pixel_height=528, pixel_width=1190, sixel_height=0, sixel_width=0(no sixel)