aboutsummaryrefslogtreecommitdiffhomepage
path: root/share
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-06-17 15:19:55 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-06-17 15:19:55 -0700
commit1bead8adf7e3139e0b4644a6215751fac60daddf (patch)
tree538cbf12e7cc83279d770150bee4c7a3d9f0c3cb /share
parent6681f3bfec4d944a9e978aa7d5fd84363ca38cba (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-xshare/tools/create_manpage_completions.py3
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