Two issues with a prior PR for handling line-spanning progress bars are
fixed in this PR:
- corner case where output line len == term width: extra line was being
added
- line length calculation was including escape characters causing
calculations to span lines when output was still only on one line
Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com>