mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
generate-alt-random: emit sixels on the alt screen
This commit is contained in:
parent
f8e51fcb17
commit
4a86cd7475
1 changed files with 5 additions and 2 deletions
|
|
@ -158,8 +158,8 @@ def main():
|
||||||
reset_actions = ['\033[m', '\033[39m', '\033[49m']
|
reset_actions = ['\033[m', '\033[39m', '\033[49m']
|
||||||
out.write(random.choice(reset_actions))
|
out.write(random.choice(reset_actions))
|
||||||
|
|
||||||
# Leave alt screen
|
# Reset colors
|
||||||
out.write('\033[m\033[r\033[?1049l')
|
out.write('\033[m\033[r')
|
||||||
|
|
||||||
if opts.sixel:
|
if opts.sixel:
|
||||||
# The sixel 'alphabet'
|
# The sixel 'alphabet'
|
||||||
|
|
@ -210,6 +210,9 @@ def main():
|
||||||
# End sixel
|
# End sixel
|
||||||
out.write('\033\\')
|
out.write('\033\\')
|
||||||
|
|
||||||
|
# Leave alt screen
|
||||||
|
out.write('\033[?1049l')
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
sys.exit(main())
|
sys.exit(main())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue