generic console-based progress bar