class

CRT::Ansi::Screen

Inherits Reference < Object

Constructors

new(io : IO = STDOUT, *, alt_screen : Bool = true, raw_mode : Bool = true, hide_cursor : Bool = true, mouse : Bool = false, context : Context | Nil = nil)
Source

Class methods

open(io : IO = STDOUT, **opts, &) : Nil
Source

Instance methods

alt_screen?
Source
blit(*args, **options)

Delegate drawing methods to the renderer.

Source
blit(*args, **options, &)

Delegate drawing methods to the renderer.

Source
box(*args, **options)

Delegate drawing methods to the renderer.

Source
box(*args, **options, &)

Delegate drawing methods to the renderer.

Source
cell(*args, **options)

Delegate drawing methods to the renderer.

Source
cell(*args, **options, &)

Delegate drawing methods to the renderer.

Source
clear(*args, **options)

Delegate drawing methods to the renderer.

Source
clear(*args, **options, &)

Delegate drawing methods to the renderer.

Source
cursor(visible : Bool) : Nil
Source
cursor_hidden?
Source
cursor_to(*args, **options)

Delegate drawing methods to the renderer.

Source
cursor_to(*args, **options, &)

Delegate drawing methods to the renderer.

Source
height
Source
input
Source
mouse(enabled : Bool) : Nil
Source
mouse_enabled?
Source
on_resize
Source
panel(*args, **options)

Delegate drawing methods to the renderer.

Source
panel(*args, **options, &)

Delegate drawing methods to the renderer.

Source
poll_event

Return the next event if input is available, nil otherwise.

Source
present
Source
put(*args, **options)

Delegate drawing methods to the renderer.

Source
put(*args, **options, &)

Delegate drawing methods to the renderer.

Source
raw_mode?
Source
read_event

Read the next input event (blocking). Returns Key or Mouse.

Source
read_key

Read the next key event (blocking). Discards mouse events.

Source
render
Source
resize(width : Int32, height : Int32) : Nil
Source
run(*, fps : Int32 = 30, &) : Nil

Run a frame-rate-limited loop. Yields once per frame, then calls present. Use poll_event inside the block for input. Break from the block or call stop to exit.

Source
running?
Source
start
Source
stop
Source
width
Source
write(*args, **options)

Delegate drawing methods to the renderer.

Source
write(*args, **options, &)

Delegate drawing methods to the renderer.

Source