module Terminimal
Overview
A tiny CLI toolkit for building terminal apps for humans.
Extended Modules
Defined in:
terminimal.crterminimal/ansi.cr
Instance Method Summary
-
#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.
-
#cursor
Returns
Terminimal::Cursor
for interaction with the TTY cursor. -
#exit_with_error(message, status) : NoReturn
Prints an error message to STDERR and exits.
-
#reset_line
Clears the current line a respositions the cursor at column 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. -
#spinner(await : Concurrent::Future, style = Spinner::Style::UNI_DOTS, async = false, &message : Proc(String))
ditto
Instance Method Detail
Clears the current line in the direct specified.
Clears the screen and resets cursor position to 0,0.
def 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.
def spinner(await : Concurrent::Future, style = Spinner::Style::UNI_DOTS, async = false, &message : Proc(String))
#
ditto