The ANSI util class returns ansi codes as char[], but this do not work if not sent to the terminal in a single batch. however, if we return them as a string, it works.