mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
scripts: generate-alt-random: set P2=1 when emitting sixels
P2=1 means "empty sixels remain at their current color". This is usually the case with modern sixel encoders.
This commit is contained in:
parent
75f9bed6b6
commit
fc46087ce9
1 changed files with 2 additions and 2 deletions
|
|
@ -207,8 +207,8 @@ def main():
|
|||
six_height, six_width = last_size
|
||||
six_rows = (six_height + 5) // 6 # Round up; each sixel is 6 pixels
|
||||
|
||||
# Begin sixel
|
||||
out.write('\033Pq')
|
||||
# Begin sixel (with P2=1 - empty sixels are transparent)
|
||||
out.write('\033P;1q')
|
||||
|
||||
# Sixel size. Without this, sixels will be
|
||||
# auto-resized on cell-boundaries.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue