module RatatuiRuby::TUI::Core
Core terminal methods delegated to RatatuiRuby module.
These are the fundamental operations for the render loop: drawing UI, polling events, and inspecting the buffer.
Public Instance Methods
Source
# File lib/ratatui_ruby/tui/core.rb, line 17 def draw(tree = nil, &) RatatuiRuby.draw(tree, &) end
Draws the given UI node tree to the terminal. @see RatatuiRuby.draw
Source
# File lib/ratatui_ruby/tui/core.rb, line 35 def draw_cell(x, y, cell) Draw.cell(x, y, cell) end
Creates a Draw::CellCmd for placing a cell at coordinates. @return [Draw::CellCmd]
Source
# File lib/ratatui_ruby/tui/core.rb, line 29 def get_cell_at(x, y) RatatuiRuby.get_cell_at(x, y) end
Inspects the terminal buffer at specific coordinates. @see RatatuiRuby.get_cell_at
Source
# File lib/ratatui_ruby/tui/core.rb, line 23 def poll_event(timeout: 0.016) RatatuiRuby.poll_event(timeout:) end
Checks for user input. @see RatatuiRuby.poll_event