I have dialog
installed, where I would like to have a nice progress dialog, like this:
+-------[ title ]--------+
| |
| +-[ console output ]-+ |
| | output line11 ^ |
| | output line12 | |
| | output line13 | |
| | output line14 # |
| | output line15 | |
| | output line16 v |
| +--------------------+ |
| #########80%#####::::: |
+------------------------+
So, for example when upgrading 5 packages in a distro, it shows the progress (here, 4 package is upgraded out of 5 ie. 80%), but shows the detailed output of the executed commands. Is this possible?
I suspect it is, but I cannot get a working solution with --tailboxbg
and --gauge
.
Best Answer
Right, you can do it with
--gauge
:This code in action:
Note. This code actually copies those five files from
/etc/
into your$HOME
folder.