A flexible progress bar drawing in terminal emulators