class

Tea::NilRenderer

Inherits Tea::Renderer < Reference < Object

NilRenderer is a no-op renderer. It implements the Renderer interface but doesn't render anything to the terminal.

Instance methods

clear_screen

Clear the screen - no-op Implements renderer interface

Source
close

Close the renderer and flush any remaining data - no-op Implements renderer interface

Source
flush(closing : Bool) : Exception | Nil

Flush the renderer's buffer to the output - no-op Implements renderer interface

Source
insert_above(content : String) : Exception | Nil

Insert unmanaged lines above the renderer - no-op Implements renderer interface

Source
on_mouse(msg : MouseMsg) : Cmd | Nil

Handle a mouse event - returns nil Implements renderer interface

Source
render(view : View)

Render a frame to the output - no-op Implements renderer interface

Source
reset

Reset the renderer's state to its initial state - no-op Implements renderer interface

Source
resize(width : Int32, height : Int32)

Notify the renderer of a terminal resize - no-op Implements renderer interface

Source
set_color_profile(profile : Ultraviolet::ColorProfile)

Set the color profile - no-op Implements renderer interface ameba:disable Naming/AccessorMethodName

Source
set_width_method(method : Ultraviolet::WidthMethod)

Set the method for calculating the width of the terminal - no-op ameba:disable Naming/AccessorMethodName

Source
start

Start the renderer - no-op Implements renderer interface

Source
syncd_updates=(enabled : Bool)

Set whether to use synchronized updates - no-op Implements renderer interface

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

Write a string to the renderer's output - no-op Implements renderer interface

Source