In the cli output classes this method will clear terminal screen if
the standard output is a terminal.
device.out = out
image_os.out = out
device.out = out
image_os.out = out
#Sysprep
device.mount(False)
#Sysprep
device.mount(False)
+ def clear(self):
+ pass
+
def _get_progress(self):
progress = self._Progress
progress.output = self
def _get_progress(self):
progress = self._Progress
progress.output = self
output(msg, new_line, color)
output(msg, new_line, color)
+def clear():
+ #clear the page
+ if sys.stderr.isatty():
+ sys.stderr.write('\033[H\033[2J')
+
+
class SilentOutput(Output):
pass
class SilentOutput(Output):
pass
def output(self, msg='', new_line=True):
output(msg, new_line)
def output(self, msg='', new_line=True):
output(msg, new_line)
+ def clear(self):
+ clear()
+
class OutputWthProgress(SimpleOutput):
class _Progress(Bar):
class OutputWthProgress(SimpleOutput):
class _Progress(Bar):