commit | bbde0539e8cdabdd6dedb8325743a2f4e3feff7f | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Thu Apr 09 15:08:41 2020 -0600 |
committer | Simon Glass <sjg@chromium.org> | Tue Apr 21 06:33:47 2020 -0600 |
tree | b617977b838bd32291f1425e20a4747940c9ff27 | |
parent | 5f9325d28cf41008c0f886139c118b8249d073f3 [diff] |
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>