summaryrefslogtreecommitdiffstats
path: root/pyload/cli/Handler.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-13 17:20:59 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-13 17:20:59 +0200
commite00ef98491f79ae8aa972ae1473dae4a7b78c07e (patch)
tree31be0c7cdcebb61525bcc387bcf15d265a1c494a /pyload/cli/Handler.py
parentFix except (diff)
downloadpyload-e00ef98491f79ae8aa972ae1473dae4a7b78c07e.tar.xz
Cleanup
Diffstat (limited to 'pyload/cli/Handler.py')
-rw-r--r--pyload/cli/Handler.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/pyload/cli/Handler.py b/pyload/cli/Handler.py
index 4aab3f0e2..33e5dd8e6 100644
--- a/pyload/cli/Handler.py
+++ b/pyload/cli/Handler.py
@@ -2,6 +2,7 @@
# @author: RaNaN
class Handler(object):
+
def __init__(self, cli):
self.cli = cli
self.init()
@@ -9,24 +10,31 @@ class Handler(object):
client = property(lambda self: self.cli.client)
input = property(lambda self: self.cli.input)
+
def init(self):
pass
+
def onChar(self, char):
pass
+
def onBackSpace(self):
pass
+
def onEnter(self, inp):
pass
+
def setInput(self, inp=""):
self.cli.setInput(inp)
+
def backspace(self):
self.cli.setInput(self.input[:-1])
+
def renderBody(self, line):
""" gets the line where to render output and should return the line number below its content """
return line + 1