Skip to content

ANSI escape sequences are not interpreted in the message body #1679

@johslarsen

Description

@johslarsen

Earlier versions of alot interpreted ANSI escape sequences in the messages bodies for e.g. HTML coloring. This feature was broken by 11ea16f, because it also strips ESC \x1b control characters. Leaving just the coloring commands like e.g. [1;30m. Returning true for \x1b along side \n in the unicode_printable function brings back the old behavior.

Whether that feature was a good idea to begin with is debatable, so if you want it like this I don't mind, but then at least this part of the documentation should be removed. And I am guessing a lot of alot/widgets/ansi.py might be superfluous now

Software Versions

  • Python version: 3.12.5
  • Alot version: 0.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions