Skip to content

"reverse" field added to Cell

Latest
Compare
Choose a tag to compare
@salt-die salt-die released this 28 Aug 02:06
· 4 commits to main since this release

"reverse" field added to Cell

So before this change, if one wanted, say, an upper 5/8ths block (which doesn't exist), a lower 3/8ths block ("▃") could instead be used with the foreground and background colors swapped.

The issue with this is alpha compositing always composites with the background color! So the flipped foreground and background colors will look sorely out-of-place as soon as any transparency is enabled.

"reverse" fixes this. Now, an upper 5/8ths block can be created by setting the cell's "reverse" field and alpha compositing will still look correct using the "bg_color" field.

Additional changes:

  • Minor fixes to ansi parsing on windows.
  • text_tools.cell function renamed to text_tools.new_cell.
  • ANSI art viewer (parses and displays .ans files) added.
  • PosHint and SizeHint dataclasses removed. PosHintDict and SizeHintDict renamed PosHint/SizeHint, respectively.
  • Added optional filter for FileChooser.
  • Added dynamic bars option to ScrollView.
  • Continued doc string improvements.
  • Small bug fixes.