enum RemiLib::Console::EraseLine

Overview

Changes how #eraseLine behaves.

Defined in:

remilib/console/ansi.cr

Enum Members

CursorToEnd = 0

Erase text from the cursor to the end of the line.

CursorToStart = 1

Erase text from the cursor to the start of the line.

WholeLine = 2

Erase the entire line.

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 cursor_to_end? #

Returns true if this enum value equals CursorToEnd


[View source]
def cursor_to_start? #

Returns true if this enum value equals CursorToStart


[View source]
def whole_line? #

Returns true if this enum value equals WholeLine


[View source]