Revision 4a847a98 image_creator/output/cli.py

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