This is a minimal implementation of the Tqdm Python library for Rust; please use Tqdm or Kdam if you want a real implementation.
Unlike the provided alternatives, this does not use anything but the VT100 terminal ANSI codes. Specifically this prints to the very first line the progress of the iterator. It is very minimal and you are expected to modify it to fit your needs.
I personally would rather use any of the others, as I know this implementations' limitations.
Please be sure to detect the SCREEN_WIDTH, and I am sure you would be able to get the cursor back to it's default position, or just clear the screen instead.