module

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.

Source
clear_screen(direction = ClearDirection::All)

Clears the screen and resets cursor position to 0,0.

Source
cursor

Returns Terminimal::Cursor for interaction with the TTY cursor.

Source
exit_with_error(message, status) : NoReturn

Prints an error message to STDERR and exits.

Source
reset_line

Clears the current line a respositions the cursor at column 0.

Source
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.

Source
spinner(await : Future::Compute, style = Spinner::Style::UNI_DOTS, async = false, &message : Proc(String))

ditto

Source
spinner(await : Proc(Bool), style = Spinner::Style::UNI_DOTS, async = false, message = "")

ditto

Source
spinner(await : Future::Compute, style = Spinner::Style::UNI_DOTS, async = false, message = "")

ditto

Source

Nested types