/contrib/dialog/samples/mixedgauge

https://bitbucket.org/freebsd/freebsd-head/ · Shell · 26 lines · 20 code · 3 blank · 3 comment · 1 complexity · 714f6f8a31cf672abf43f56cc03e0d1c MD5 · raw file

  1. #! /bin/sh
  2. # $Id: mixedgauge,v 1.7 2010/01/13 10:20:03 tom Exp $
  3. . ./setup-vars
  4. background="An Example of --mixedgauge usage"
  5. for i in 5 10 20 30 40 50 60 70 80 90 100
  6. do
  7. $DIALOG --backtitle "$background" \
  8. --title "Mixed gauge demonstration" "$@" \
  9. --mixedgauge "This is a prompt message,\nand this is the second line." \
  10. 0 0 33 \
  11. "Process one" "0" \
  12. "Process two" "1" \
  13. "Process three" "2" \
  14. "Process four" "3" \
  15. "" "8" \
  16. "Process five" "5" \
  17. "Process six" "6" \
  18. "Process seven" "7" \
  19. "Process eight" "4" \
  20. "Process nine" "-$i"
  21. # break
  22. sleep 1
  23. done