Explorar o código

print char in getChar

frabbit %!s(int64=11) %!d(string=hai) anos
pai
achega
c4acaeefd1
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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;
 	}