class

CRT::Ansi::Render

Inherits CRT::Ansi::Canvas < Reference < Object

Constructors

new(io : IO, width : Int, height : Int, *, origin_x : Int = 1, origin_y : Int = 1, context : Context = CRT::Ansi.context)
Source

Instance methods

cell(x : Int, y : Int) : Cell
Source
clear(style : Style = default_style) : Nil
Source
context
Source
cursor_to(x : Int, y : Int) : Nil

Set where the visible cursor should be placed after the next present. Coordinates are 0-indexed buffer positions. Pass (-1, -1) to clear the request (cursor stays wherever rendering left it).

Source
default_style
Source
force_full_redraw!
Source
height
Source
origin_x
Source
origin_y
Source
present
Source
put(x : Int, y : Int, grapheme : String, style : Style = default_style) : Nil
Source
reset_terminal_state!
Source
resize(width : Int, height : Int) : Nil
Source
width
Source
write(x : Int, y : Int, text : String, style : Style = default_style) : Int32
Source