@@ -92,7 +92,7 @@ class Sys {
}
case "win32" | "cygwin":
- python.lib.Msvcrt.getch();
+ python.lib.Msvcrt.getch().decode("utf-8").charCodeAt(0);
case x :
throw "platform " + x + " not supported";
@@ -3,7 +3,7 @@ package python.lib;
extern class Msvcrt {
- public static function getch ():Int;
+ public static function getch ():python.lib.Types.Bytes;
static function __init__ ():Void
{