enum RemiLib::Console::Direction

Overview

Used to tell #cursor the direction to move the cursor.

Defined in:

remilib/console/ansi.cr

Enum Members

Up = 0

Move the cursor up one line.

Down = 1

Move the cursor down one line.

Forward = 2

Move the cursor forward one cell.

Backward = 3

Move the cursor back one cell.

NextLine = 4

Move the cursor one line down, and to the first column.

PrevLine = 5

Move the cursor one line up, and to the first column.

ToColumn = 6

Move the cursor to a specific column.

Instance Method Summary

Instance Method Detail

def backward? #

[View source]
def down? #

[View source]
def forward? #

[View source]
def next_line? #

[View source]
def prev_line? #

[View source]
def to_column? #

[View source]
def up? #

[View source]