enum RemiLib::Console::EraseDisplay

Overview

Changes how #eraseScreen behaves.

Defined in:

remilib/console/ansi.cr

Enum Members

CursorToEnd = 0

Erases the screen from the cursor to the bottom of the screen.

CursorToStart = 1

Erases the screen from the cursor to the top of the screen.

WholeScreen = 2

Erases the entire visible screen.

ScreenAndScrollback = 3

Erases the entire visible screen, plus any visible lines in the scrollback.

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

Returns true if this enum value equals ScreenAndScrollback


[View source]
def whole_screen? #

Returns true if this enum value equals WholeScreen


[View source]