class

CryTUI::AnsiBackend

Inherits CryTUI::Backend < Reference < Object

ANSI/VT backend for modern terminals. Capability negotiation and raw input are separate concerns; this class owns output state and restoration only.

Constructors

for_terminal(io : IO, size_source : IO::FileDescriptor, alternate_screen = true) : self
Source
new(io : IO, width : Int, height : Int, alternate_screen : Bool = true, size_source : IO::FileDescriptor | Nil = nil)
Source

Instance methods

clear
Source
draw(changes : Array(Tuple(Int32, Int32, Cell))) : Nil
Source
enter
Source
leave
Source
refresh_size
Source
resize(width : Int, height : Int)
Source
size
Source