Fun fact, you can print colours in Kotlin: ``` ...
# random
t
Fun fact, you can print colours in Kotlin:
Copy code
println(ANSI_YELLOW)
    println("YELLOW")
}

const val ANSI_YELLOW = "\u001B[33m"
Output:
👍 4
n
you can also using something like Jansi https://github.com/fusesource/jansi
t
@nanodeath I can use java libraries in Kotlin? If so, can I use Kotlin code? I don't like Java that much.
n
Kotlin/JVM code can definitely call java libraries
t
@nanodeath Ok thanks for this info. I will have a look. Also can we use graphs/charts in console apps?
n
probably only ASCII art graphs 😛
t
@nanodeath oh is this possible in the library?
n
unlikely
👍 1
w
The color isn’t really feature of Kotlin, rather your terminal:
☝️ 3
m
Tom, yes you can use Java libs from Kotlin code: https://kotlinlang.org/docs/java-interop.html
t
@Matteo Mirk Thanks for your answer.
😉 1