module

Tea::Renderer

Renderer is the interface for Bubble Tea renderers Implementations: StandardRenderer (cursed_renderer.go), NilRenderer (nil_renderer.go)

Instance methods

clear_screen

Clear the screen

Source
close

Close the renderer and flush any remaining data

Source
flush(closing : Bool) : Exception | Nil

Flush the renderer's buffer to the output

Source
insert_above(content : String) : Exception | Nil

Insert unmanaged lines above the renderer

Source
on_mouse(msg : MouseMsg) : Cmd | Nil

Handle a mouse event

Source
render(view : View)

Render a frame to the output

Source
reset

Reset the renderer's state to its initial state

Source
resize(width : Int32, height : Int32)

Notify the renderer of a terminal resize

Source
set_color_profile(profile : Ultraviolet::ColorProfile)

Set the terminal color profile ameba:disable Naming/AccessorMethodName

Source
set_width_method(method : Ultraviolet::WidthMethod)

Set terminal width computation strategy ameba:disable Naming/AccessorMethodName

Source
start

Start the renderer

Source
syncd_updates=(enabled : Bool)

Set whether to use synchronized updates

Source
write_string(content : String) : Tuple(Int32, Exception | Nil)

Write a string to the renderer's output

Source