class

Tui::RichText

Inherits Tui::Widget / Tui::Reactive / Reference / Object

Constructors

new(id : String | Nil = nil)
Source

Instance methods

add_button(label : String, &action : -> Nil) : InlineButton
Source
add_code(code : String) : InlineCode
Source
add_line
Source
add_text(text : String, style : Style = Style.new) : Nil
Source
bg_color
Source
bg_color=(bg_color : Color)
Source
clear
Source
lines
Source
newline
Source
on_event(event : Event) : Bool

Override to handle events for this widget (target/bubble phase) Called after children have had a chance to handle the event

Source
render(buffer : Buffer, clip : Rect) : Nil

Override to render widget content

Source

Nested types