Feature Request: Support ANSI color escape codes when printing tables
jacob-pro opened this issue · 0 comments
jacob-pro commented
First, thank you for this useful library.
Feature Request:
ANSI escape codes can be used for controlling text colour.
Whilst these can currently be included in a string column, and will show with colour when printed in a compatible terminal, the table does not print correctly due to the cell width being calculated incorrectly.
It would be awesome if this library allowed for either:
a. Easily overriding the cell width used in the DataFramePrinter
instead of calling .length
directly. (low effort)
b. Detecting ANSI escape codes in string columns and correctly counting the actual display width (higher effort)