Skip to content

What to use in place of render? #184

@boxleytw

Description

@boxleytw

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions