File: slider.rb

package info (click to toggle)
ruby-tty-prompt 0.23.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,452 kB
  • sloc: ruby: 8,847; makefile: 4
file content (6 lines) | stat: -rw-r--r-- 176 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
# frozen_string_literal: true

require_relative "../lib/tty-prompt"

prompt = TTY::Prompt.new
prompt.slider("Volume", max: 100, step: 5, default: 75, format: "|:slider| %d%%")