module

Ctop::TUI::Widgets::Box

Box drawing utilities for creating bordered panels.

Class methods

clear_rect(tui : Termisu, x : Int32, y : Int32, width : Int32, height : Int32)

Fill area with spaces (for clearing).

Source
draw_frame(tui : Termisu, x : Int32, y : Int32, width : Int32, height : Int32, title : String | Nil = nil, fg : Termisu::Color = Termisu::Color.cyan)

Draw a framed box with optional title.

Source
draw_highlight(tui : Termisu, x : Int32, y : Int32, width : Int32, bg : Termisu::Color = Termisu::Color.bright_blue)

Draw a highlighted row background (full width).

Source
draw_hline(tui : Termisu, x : Int32, y : Int32, width : Int32, ch : Char, fg : Termisu::Color)

Draw a horizontal line.

Source