Reputation: 2111
Doing print("\033[F")
works to go a line up in the console, but the (Scala 2.11.6) compiler complains about
warning: Octal escape literals are deprecated, use \u001b instead.
However print("\u001b") doesn't seem to have any effect. How to do this correctly in Scala?
Upvotes: 2
Views: 128
Reputation: 3081
Short answer: \u001b
is the same as the deprecated \033
, so the whole string should be "\u001b[F"
Upvotes: 3