I've updated to latest Jansi from an older version. Previously, I used code such as (Kotlin; Java is similar):
println(ansi().render("""
@|bold f($n) = ${fib.char}|@
@|green F($n) = $fib|@
@|blue 1/F($n) = ${fib.multInv}|@
@|magenta det(F($n)) = ${fib.det}|@
@|yellow tr(F($n)) = ${fib.tr}|@
""".trim()))
I note the render method has gone away, and format does not seem to process the ANSI instructions for @|...|@ bits in my string, and AnsiRenderer has gone away.
What is suggested to do in it's place? I know about methods such as bold, but prefer being able to use string templates.
Thanks!
I've updated to latest Jansi from an older version. Previously, I used code such as (Kotlin; Java is similar):
I note the
rendermethod has gone away, andformatdoes not seem to process the ANSI instructions for@|...|@bits in my string, andAnsiRendererhas gone away.What is suggested to do in it's place? I know about methods such as
bold, but prefer being able to use string templates.Thanks!