RangePromptExtensions extension

Dual-handle range prompt for selecting a numeric or percentage span.

Controls:

  • ← / → adjust the active handle by step
  • ↑ / ↓ or Space switches between start/end handles
  • Enter confirms
  • Esc / Ctrl+C cancel (returns the initial values)
final (start, end) = terminice.range(
  'Memory budget',
  startInitial: 2,
  endInitial: 8,
  unit: 'GB',
);
on

Methods

range(String prompt, {num min = 0, num max = 100, num startInitial = 20, num endInitial = 80, num step = 1, int width = 28, String unit = '%'}) RangeResult

Available on Terminice, provided by the RangePromptExtensions extension

Range prompt for selecting a (start, end) tuple.