Progress Bar for terminal and KDE
Go to file
Denis Knauf 367e8b6e6b project-uri to denkn.at 2018-12-28 12:31:34 +01:00
lib KDE-Support: KDE-JobViewer-DBUS-Service. Registration and usable-checks for progressbar-handler. 2018-12-28 12:28:41 +01:00
test init 2014-12-23 17:32:29 +01:00
.document init 2014-12-23 17:32:29 +01:00
.gitignore init 2014-12-23 17:32:29 +01:00
Gemfile init 2014-12-23 17:32:29 +01:00
Gemfile.lock init 2014-12-23 17:32:29 +01:00
LICENSE.txt init 2014-12-23 17:32:29 +01:00
README.md README. class Progress -> ProgressBar 2014-12-23 18:19:55 +01:00
Rakefile project-uri to denkn.at 2018-12-28 12:31:34 +01:00
VERSION Version bump to 0.3.7 2014-12-24 11:46:19 +01:00
progress-bar.gemspec Regenerate gemspec for version 0.3.7 2014-12-24 11:46:24 +01:00

README.md

ProgressBar

Usage

This example will use your Terminal, if possible. If your program will be started without a Terminal, it will use kdialog for display a window.

pb = ProgressBar.new 100, 'Initial Text...'
pb.i += 5
pb.inc! 5
pb.text = 'Something different'
pb.inc! 20
pb.text = 'Second phase'
pb.inc! 60
pb.text = 'Last Steps'
pb.inc! 20
pb.text = 'Done!'

If you want to force to use kdialog use ProgressBar::KDialog.new or if you want to use your Console, use ProgressBar::Console.