0

Im tryng create a print effect who looks like a Loading Linux Terminal using the Koltin language.
I want a print show the sequence of a spin:

-\|/-\|/-

So after the sequence the word "-" will be fixed and print the next spin.
I want a print for 10 times.

OUTPUT:

--------/

Romero
  • 1
  • 2
  • printing just sends it to output. you can't modify it after sending. Only add new text to it – Ivo Sep 27 '22 at 12:15
  • And exist something to do to subscribe a output text in Kotlin? – Romero Sep 27 '22 at 18:38
  • Does this answer your question? [How to delete stuff printed to console by System.out.println()?](https://stackoverflow.com/questions/7522022/how-to-delete-stuff-printed-to-console-by-system-out-println) – dnault Sep 28 '22 at 00:31
  • Specifically, this answer: https://stackoverflow.com/a/7522190/611819 – dnault Sep 28 '22 at 00:31
  • Humm, so I can't clearing screen on terminal in Kotlin. Only put many new lines to make a ilusion of screen is clear. I understend, thanks for the answer. – Romero Sep 28 '22 at 16:58

0 Answers0