AnsiString append ( String text , Code ... codes ) { if ( codes . length == 0 || ! isAnsiSupported ( ) ) { this . value . append ( text ) ; return this ; } Ansi ansi = Ansi . ansi ( ) ; for ( Code code : codes ) { ansi = applyCode ( ansi , code ) ; } this . value . append ( ansi . a ( text ) . reset ( ) . toString ( ) ) ; return this ; }
Append text with the given ANSI codes .