Skip to content

Add terminal-aware rendering API (auto-disable ANSI when not writing to TTY) #565

@mike-5345

Description

@mike-5345

Hello,

I am wondering if it is possible to add a way to render/write the table to a string the retains ANSI formatting and one that removes ANSI formatting.

Basically, I have some columns I want to colour differently based on the value, and some other ANSI styling - bold, italic etc. Maybe a display_term annotation? And a to_term_string on the Table?

Thanks for consideration!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions