Revision 4a847a98

b/image_creator/dialog_wizard.py
177 177
    device.out = out
178 178
    image_os.out = out
179 179

  
180
    out.output()
180
    out.clear()
181 181

  
182 182
    #Sysprep
183 183
    device.mount(False)
b/image_creator/output/__init__.py
48 48
    def cleanup(self):
49 49
        pass
50 50

  
51
    def clear(self):
52
        pass
53

  
51 54
    def _get_progress(self):
52 55
        progress = self._Progress
53 56
        progress.output = self
b/image_creator/output/cli.py
58 58
    output(msg, new_line, color)
59 59

  
60 60

  
61
def clear():
62
    #clear the page
63
    if sys.stderr.isatty():
64
        sys.stderr.write('\033[H\033[2J')
65

  
66

  
61 67
class SilentOutput(Output):
62 68
    pass
63 69

  
......
78 84
    def output(self, msg='', new_line=True):
79 85
        output(msg, new_line)
80 86

  
87
    def clear(self):
88
        clear()
89

  
81 90

  
82 91
class OutputWthProgress(SimpleOutput):
83 92
    class _Progress(Bar):

Also available in: Unified diff