]> git.baikalelectronics.ru Git - uboot.git/commit
patman: Support limiting output to a single line
authorSimon Glass <sjg@chromium.org>
Thu, 9 Apr 2020 21:08:41 +0000 (15:08 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 21 Apr 2020 12:33:47 +0000 (06:33 -0600)
commit47edfae7e59a6cd3fffa6a965dc663ce1aa02e43
treeb617977b838bd32291f1425e20a4747940c9ff27
parent14bf916ae974f1feb4703d17ee357092e35a518a
patman: Support limiting output to a single line

When outputing a progress line we don't want it to go past the end of the
current terminal line, or it will not be possible to erase it. Add an
option to Print() which allows limiting the output to the terminal width.

Since ANSI sequences do not take up space on the terminal, these are
removed.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/patman/terminal.py