Add interrupt and eot callbacks

This commit is contained in:
Kovid Goyal
2018-02-07 19:46:53 +05:30
parent 3828511051
commit 66a897cc80
2 changed files with 40 additions and 7 deletions

View File

@@ -24,6 +24,12 @@ class Handler:
def on_mouse(self, mouse_event):
pass
def on_interrupt(self):
pass
def on_eot(self):
pass
def write(self, data):
if isinstance(data, str):
data = data.encode('utf-8')