Ctop::TUI::Widgets::Bar
Class methods
draw(tui : Termisu, x : Int32, y : Int32, width : Int32, percent : Float64, fg : Termisu::Color = Termisu::Color.green, filled : Char = '█', empty : Char = '░')
Draw a horizontal progress bar.
- x, y: starting position
- width: total width including brackets
- percent: 0.0 to 100.0
draw_threshold(tui : Termisu, x : Int32, y : Int32, width : Int32, percent : Float64, color_enabled : Bool = true, filled : Char = '█', empty : Char = '░')
Draw a bar with color based on thresholds: green < 50% < yellow < 80% < red When color_enabled is false, uses white for monochrome output.