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 methods inherited from struct Enum

toRsconf(builder : RemiLib::RSConf::Builder) toRsconf

Constructor methods inherited from struct Enum

new(val : RemiLib::RSConf::RSValue) new

Instance methods inherited from class Object

toRsconf(io : IO, *, indentSize : Int = 2, alwaysQuoteKeys : Bool = false, explicitRootObject : Bool = false, commaAfterValues : Bool = false, extraNewlineBetweenToplevelKeys : Bool = false) : Nil
toRsconf(*, indentSize : Int = 2, alwaysQuoteKeys : Bool = false, explicitRootObject : Bool = false, commaAfterValues : Bool = false, extraNewlineBetweenToplevelKeys : Bool = false) : String
toRsconf

Class methods inherited from class Object

fromRsconf(toplevel : RemiLib::RSConf::RSValue)
fromRsconf(data : String | IO | Path)
fromRsconf

Instance Method Detail

def backward? #

Returns true if this enum value equals Backward


[View source]
def down? #

Returns true if this enum value equals Down


[View source]
def forward? #

Returns true if this enum value equals Forward


[View source]
def next_line? #

Returns true if this enum value equals NextLine


[View source]
def prev_line? #

Returns true if this enum value equals PrevLine


[View source]
def to_column? #

Returns true if this enum value equals ToColumn


[View source]
def up? #

Returns true if this enum value equals Up


[View source]