Do not hide the cursor when showing a progress bar
[snf-image-creator] / image_creator / output / cli.py
index 91191cf..2859552 100644 (file)
@@ -102,6 +102,7 @@ class OutputWthProgress(SimpleOutput):
         }
 
         def __init__(self, size, title, bar_type='default'):
+            self.hide_cursor = False
             super(OutputWthProgress._Progress, self).__init__()
             self.title = title
             self.fill = '#'
@@ -111,8 +112,8 @@ class OutputWthProgress(SimpleOutput):
             self.suffix = self.template[bar_type]
             self.max = size
 
-            # print empty progress bar workaround
-            self.goto(1)
+            # print empty progress bar
+            self.start()
 
         def success(self, result):
             self.output.output("\r%s...\033[K" % self.title, False)