invoke

operator fun invoke(raw: CharSequence, errorMode: ErrorMode = ErrorMode.Throw): Str

Creates an [fansi.Str] from a non-fansi java.lang.String or other CharSequence.

Note that this method is implicit, meaning you can pass in a java.lang.String anywhere an fansi.Str is required and it will be automatically parsed and converted for you.

Parameters

errorMode

Used to control what kind of behavior you get if the input CharSequence contains an Ansi escape not recognized by Fansi as a valid color.


operator fun invoke(vararg args: Str): Str
operator fun invoke(vararg args: String): Str