ConsoleLoadingAnimation

open class ConsoleLoadingAnimation

A simple function to create a loading animation in the console. Useful while startup routines to show a user that the software is still working. Cant be used with ConsoleManager together.

Functions

Link copied to clipboard
open fun disable()
Disable and remove the loading animation.
Link copied to clipboard
open fun enable()
Enable the loading animation and take over print stream to prevent output while loading.
open fun enable(takeOverSystemOutputStream: Boolean)
Enable the loading animation.
Link copied to clipboard
open fun isEnabled(): Boolean
Is the animation enabled?

Properties

Link copied to clipboard
private open var animation: Array<Char>
Link copied to clipboard
private open var speed: Int