Start work on unicode input kitten

This commit is contained in:
Kovid Goyal
2018-02-08 11:00:57 +05:30
parent bf5b0070c1
commit ef9a24932f
4 changed files with 46 additions and 9 deletions

View File

View File

@@ -0,0 +1,27 @@
#!/usr/bin/env python
# vim:fileencoding=utf-8
# License: GPL v3 Copyright: 2018, Kovid Goyal <kovid at kovidgoyal.net>
import sys
from ..tui.handler import Handler
from ..tui.loop import Loop
class UnicodeInput(Handler):
def initialize(self, *args):
Handler.initialize(self, *args)
self.write('Testing 123...')
def on_interrupt(self):
self.quit_loop(1)
def on_eot(self):
self.quit_loop(1)
def main(args=sys.argv):
loop = Loop()
handler = UnicodeInput()
loop.loop(handler)