sixel: respect sixel aspect ratio

That is, parse P1 when initializing a new sixel, and don’t ignore
pad/pad in the raster attributes command.

The default aspect ratio is 2:1, but most sixels will override it in
the raster attributes command (to 1:1).
This commit is contained in:
Daniel Eklöf 2023-06-19 19:06:38 +02:00
parent 66d9b8da60
commit d6d143e2a6
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 52 additions and 14 deletions

View file

@ -49,6 +49,7 @@
* Meson option `utmp-backend=none|libutempter|ulog|auto`. The default
is `auto`, which will select `libutempter` on Linux, `ulog` on
FreeBSD, and `none` for all others.
* Sixel aspect ratio.
### Changed
@ -74,6 +75,8 @@
sixel is visible. For example, `cat`:ing a sixel in the shell will
typically result in the last row not being visible, unless a newline
is explicitly added.
* Default sixel aspect ratio is now 2:1 instead of 1:1.
[1371]: https://codeberg.org/dnkl/foot/pulls/1371
[1360]: https://codeberg.org/dnkl/foot/issues/1360