Add progress bar
I'd like to have a progress bar floating at the bottom of the shell, which uses full console width, resizes with the window and provides the current progress in processing events. This should be possible e.g. using the ncurses
library.
Normal logging should just go above the progress bar:
(I) [R:SimpleTransfer:telescope4] Transferring charges to pixels
(I) [R:SimpleTransfer:telescope4] Combining charges at same pixel
(I) [R:SimpleTransfer:telescope5] Transferring charges to pixels
(I) [R:SimpleTransfer:telescope5] Combining charges at same pixel
(I) [R:SimpleTransfer:cmspixel1] Transferring charges to pixels
(I) [R:SimpleTransfer:cmspixel1] Combining charges at same pixel
(W) [R:SimpleTransfer:cmspixel1] Dispatched message of type Message<allpix::PixelCharge> has no receiver
s... this is probably not what you want!
(I) [R:DepositionGeant4] Enabling beam
(I) [R:DepositionGeant4] Deposited 42671 charge carriers in sensor of detector "telescope0"
(I) [R:DepositionGeant4] Deposited 23446 charge carriers in sensor of detector "telescope1"
(I) [R:DepositionGeant4] Deposited 23839 charge carriers in sensor of detector "telescope2"
(I) [R:DepositionGeant4] Deposited 33627 charge carriers in sensor of detector "cmspixel0"
(I) [R:DepositionGeant4] Deposited 29191 charge carriers in sensor of detector "telescope3"
(I) [R:DepositionGeant4] Deposited 22594 charge carriers in sensor of detector "telescope4"
(I) [R:DepositionGeant4] Deposited 25113 charge carriers in sensor of detector "telescope5"
(I) [R:DepositionGeant4] Deposited 23140 charge carriers in sensor of detector "cmspixel1"
[ Event 41/100 ][==================================> ]