class

Tui::Log

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

Constructors

new(id : String | Nil = nil)
Source

Instance methods

auto_scroll
Source
auto_scroll=(auto_scroll : Bool)
Source
clear
Source
debug(message : String, source : String | Nil = nil) : Nil

Convenience methods

Source
debug_style

Styling

Source
debug_style=(debug_style : Style)

Styling

Source
entries
Source
entries=(entries : Array(Entry))
Source
error(message : String, source : String | Nil = nil) : Nil
Source
error_style
Source
error_style=(error_style : Style)
Source
info(message : String, source : String | Nil = nil) : Nil
Source
info_style
Source
info_style=(info_style : Style)
Source
log(message : String, level : Level = Level::Info, source : String | Nil = nil) : Nil

Add log entry

Source
max_entries
Source
max_entries=(max_entries : Int32)
Source
min_size
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
scroll_offset
Source
scroll_offset=(scroll_offset : Int32)
Source
scroll_to_bottom
Source
scroll_to_top
Source
show_level
Source
show_level=(show_level : Bool)
Source
show_timestamp
Source
show_timestamp=(show_timestamp : Bool)
Source
source_style
Source
source_style=(source_style : Style)
Source
success(message : String, source : String | Nil = nil) : Nil
Source
success_style
Source
success_style=(success_style : Style)
Source
timestamp_format
Source
timestamp_format=(timestamp_format : String)
Source
timestamp_style
Source
timestamp_style=(timestamp_style : Style)
Source
visible_count
Source
warning(message : String, source : String | Nil = nil) : Nil
Source
warning_style
Source
warning_style=(warning_style : Style)
Source
write(message : String) : Nil

Write method for IO compatibility

Source

Nested types