You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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.
tablesaw/core/src/main/java/tech/tablesaw/io/string/DataFramePrinter.java
Lines 49 to 56 in 02d3e52
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)
The text was updated successfully, but these errors were encountered: