sdlterm/cython/sdlterm.pyx
changeset 53 c4263588b716
parent 50 c5b8b9d2da95
child 54 86b84535726e
--- a/sdlterm/cython/sdlterm.pyx	Sat Jan 05 23:00:41 2013 +0100
+++ b/sdlterm/cython/sdlterm.pyx	Sun Jan 06 13:55:02 2013 +0100
@@ -45,8 +45,8 @@
         int prepare_attr(int fg, int bg, int style)
         void set_attr(int value)
 
-        void set_cursor(int x, int y)
-        void show_cursor(bool visible)
+        void show_cursor(int x, int y)
+        void hide_cursor()
 
         void get_next_event(Event event)
 
@@ -82,6 +82,11 @@
     def set_attr(self, value):
         self.thisptr.set_attr(value)
 
+    def show_cursor(self, x, y):
+        self.thisptr.show_cursor(x, y)
+    def hide_cursor(self):
+        self.thisptr.hide_cursor()
+
     def get_next_event(self):
         self.thisptr.get_next_event(self.event)
         event = self.event
@@ -101,6 +106,8 @@
             if char == '\x00':
                 char = None
             return ('keypress', keyname, char)
+        if event.type == event.RESIZE:
+            return ('resize',)
         if event.type == event.QUIT:
             return ('quit',)
         return ('unknown',)