浏览代码

print char in getChar

frabbit 11 年之前
父节点
当前提交
c4acaeefd1
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      std/python/_std/Sys.hx

+ 3 - 0
std/python/_std/Sys.hx

@@ -96,6 +96,9 @@ class Sys {
 			case x :
 				throw "platform " + x + " not supported";
 		}
+		if (echo) {
+			python.Lib.print(String.fromCharCode(ch));
+		}
 		return ch;
 	}