diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-06-17 15:19:55 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-06-17 15:19:55 -0700 |
commit | 1bead8adf7e3139e0b4644a6215751fac60daddf (patch) | |
tree | 538cbf12e7cc83279d770150bee4c7a3d9f0c3cb /share | |
parent | 6681f3bfec4d944a9e978aa7d5fd84363ca38cba (diff) |
Fix to create_manpage_completions.py to flush after every line (so you see more progress) and to put the cursor at the beginning (so it doesn't jump around)
Diffstat (limited to 'share')
-rwxr-xr-x | share/tools/create_manpage_completions.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/share/tools/create_manpage_completions.py b/share/tools/create_manpage_completions.py index f0c81469..051a3a50 100755 --- a/share/tools/create_manpage_completions.py +++ b/share/tools/create_manpage_completions.py @@ -753,7 +753,8 @@ def parse_and_output_man_pages(paths, output_directory, show_progress): # Pad on the right with spaces so we overwrite whatever we wrote last time padded_progress_str = progress_str.ljust(last_progress_string_length) last_progress_string_length = len(progress_str) - sys.stdout.write("\r\r{0} {1}".format(padded_progress_str, chr(27))) + sys.stdout.write("\r{0} {1}\r".format(padded_progress_str, chr(27))) + sys.stdout.flush(); try: if parse_manpage_at_path(manpage_path, output_directory): successful_count += 1 |