arraytotexttable icon indicating copy to clipboard operation
arraytotexttable copied to clipboard

Colors in cells values

Open weeger opened this issue 3 years ago • 1 comments

Hi !

Nice work ! But when using ascii colors, character count changes and does not display properly the columns' separation.

image

Thanks !

weeger avatar Apr 20 '22 10:04 weeger

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";
    }
}

weeger avatar Apr 20 '22 10:04 weeger