Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What to use in place of render? #184

Closed
boxleytw opened this issue Dec 16, 2020 · 1 comment · Fixed by grails/grails-data-mapping#1444 · May be fixed by gnodet/jansi#1
Closed

What to use in place of render? #184

boxleytw opened this issue Dec 16, 2020 · 1 comment · Fixed by grails/grails-data-mapping#1444 · May be fixed by gnodet/jansi#1

Comments

@boxleytw
Copy link

boxleytw commented Dec 16, 2020

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!

@gnodet
Copy link
Member

gnodet commented Jan 20, 2021

I'll see if I can put the AnsiRenderer back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment