From 93b1a976bb04c28277a9f1808ecbfad65b1d9dc7 Mon Sep 17 00:00:00 2001 From: Seblu <sebastien.luttringer@smartjog.com> Date: Fri, 31 Dec 2010 12:52:59 +0100 Subject: [PATCH] command clear --- cccli/command.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cccli/command.py b/cccli/command.py index bea4c9d..a0ada54 100644 --- a/cccli/command.py +++ b/cccli/command.py @@ -225,6 +225,11 @@ class Command(object): self._startstopsdestroypauseresume(argv) cmd_destroy.usage = "destroy [tql]" + def cmd_clear(self, argv): + '''Clear tty''' + self.printer.out("\033[H\033[2J", nl="") + cmd_clear.usage = "clear" + class Alias(dict): ''' Alias wrapper''' -- GitLab