class

Opal::UI::HTMLBrowser

Inherits Opal::UI::Element < Opal::UI::Themable < Reference < Object

Interactive TUI web browser component with address bar, back/forward history, OSC 8 terminal hyperlinks, HTML tag rendering, formatted tables, and link clicking.

Constructors

new(url : String = "about:home", enable_osc8 : Bool = true)
Source

Instance methods

back
Source
enable_osc8=(enable_osc8 : Bool)
Source
enable_osc8?
Source
forward
Source
handle_click(x : Int32, y : Int32) : Bool
Source
handle_key(key : Terminal::KeyEvent) : Bool
Source
history
Source
history=(history : Array(String))
Source
history_index
Source
history_index=(history_index : Int32)
Source
load_html(html : String, new_url : String | Nil = nil, record_history : Bool = true) : Nil
Source
on_navigate
Source
preferred_size(available_w : Int32, available_h : Int32) : Tuple(Int32, Int32)
Source
render(buffer : Buffer, x : Int32, y : Int32, width : Int32, height : Int32) : Nil
Source
scroll_down(n : Int32 = 1) : Nil
Source
scroll_up(n : Int32 = 1) : Nil
Source
scroll_y
Source
scroll_y=(scroll_y : Int32)
Source
url=(url : String)
Source