lowobservable.oec/oec/session.py
2021-11-21 11:34:19 -06:00

25 lines
524 B
Python

class Session:
def __init__(self, terminal):
self.terminal = terminal
def start(self):
raise NotImplementedError
def terminate(self):
raise NotImplementedError
def fileno(self):
raise NotImplementedError
def handle_host(self):
raise NotImplementedError
def handle_key(self, key, keyboard_modifiers, scan_code):
raise NotImplementedError
def render(self):
raise NotImplementedError
class SessionDisconnectedError(Exception):
pass