In Java I can print terminal control chars like `S...
# announcements
s
In Java I can print terminal control chars like
System.out.print("\033[100D")
. Kotlin does not like
\033
, how do I do that?
r
\\033
l
\0
is an illegal escape. either escape the escape character as demonstrated above, or use a literal string
Copy code
"""\033"""
s
\\
gives me a literal
\
.
\u001b
does what I want.
Oh, I get it. In Java,
\0...
means octal. Kotlin doesn't do that.