arraytotexttable
arraytotexttable copied to clipboard
Colors in cells values
Hi !
Nice work ! But when using ascii colors, character count changes and does not display properly the columns' separation.

Thanks !
This is the text color wrapper I use :
public static function asciiColorWrap(
string $string,
string $color
): string {
return "\033[1;".$color.'m'.$string."\033[0m";
}
}