mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -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']
|
||||
out.write(random.choice(reset_actions))
|
||||
|
||||
# Leave alt screen
|
||||
out.write('\033[m\033[r\033[?1049l')
|
||||
# Reset colors
|
||||
out.write('\033[m\033[r')
|
||||
|
||||
if opts.sixel:
|
||||
# The sixel 'alphabet'
|
||||
|
|
@ -210,6 +210,9 @@ def main():
|
|||
# End sixel
|
||||
out.write('\033\\')
|
||||
|
||||
# Leave alt screen
|
||||
out.write('\033[?1049l')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue