lib/core: remove uses of Byte for Text
[nit.git] / examples / leapfrog / leapfrog_curses.nit
index 0420277..995adde 100644 (file)
@@ -121,10 +121,10 @@ redef class PlayScene
                sys.nanosleep(0, 48000000)
 
                # Keyboard input
-               while stdin.poll_in do
-                       if stdin.eof then return
-                       var c = stdin.read_char
-                       if c == 'q'.ascii then
+               while sys.stdin.poll_in do
+                       if sys.stdin.eof then return
+                       var c = sys.stdin.read_char
+                       if c == u'q' then
                                self.exists = false
                                return
                        end