add kill to Console
[enigma2.git] / lib / python / Components / Console.py
old mode 100644 (file)
new mode 100755 (executable)
index f1f3fd9..7efdf64
@@ -55,3 +55,8 @@ class Console(object):
                if self.callbacks[name]:
                        self.callbacks[name](data,retval,extra_args)
                del self.callbacks[name]
+
+       def kill(self,name):
+               if self.appContainers.has_key(name):
+                       print "[Console] killing: ",self.appContainers[name]
+                       self.appContainers[name].kill()