module Terminimal

Overview

A tiny CLI toolkit for building terminal apps for humans.

Extended Modules

Defined in:

terminimal.cr
terminimal/ansi.cr

Instance Method Summary

Instance Method Detail

def clear_line(direction = ClearDirection::ToEnd) #

Clears the current line in the direct specified.


[View source]
def clear_screen(direction = ClearDirection::All) #

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


[View source]
def cursor #

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


[View source]
def exit_with_error(message, exit_code) : NoReturn #

Prints to STDERR and exits


[View source]
def reset_line #

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


[View source]