Terminimal
A tiny CLI toolkit for building terminal apps for humans.
Instance methods
clear_line(direction = ClearDirection::ToEnd)
Clears the current line in the direct specified.
clear_screen(direction = ClearDirection::All)
Clears the screen and resets cursor position to 0,0.
spinner(await : Proc(Bool), style = Spinner::Style::UNI_DOTS, async = false, &message : Proc(String)) : Nil
Create and display a Spinner to provide user feedback during a long
running operation.
The spinner will continue to output the result of evalutation the passed block while await returns true.
spinner(await : Future::Compute, style = Spinner::Style::UNI_DOTS, async = false, &message : Proc(String))
ditto
spinner(await : Proc(Bool), style = Spinner::Style::UNI_DOTS, async = false, message = "")
ditto
spinner(await : Future::Compute, style = Spinner::Style::UNI_DOTS, async = false, message = "")
ditto