Skip to Content
WidgetsLineGauge

LineGauge

LineGauge is a slimmer progress widget than Gauge.

LineGauge
LineGauge terminal preview
Terminal preview of LineGauge

Smallest example

let gauge = LineGauge::new() .ratio(0.63) .label("CPU") .build();

Key builder methods

  • .percent(...) or .ratio(...)
  • .label(...)
  • .line_set(...)
  • .filled_symbol(...), .unfilled_symbol(...)
  • .filled_style(...), .unfilled_style(...)
Last updated on