Browse Source

print char in getChar

frabbit 11 years ago
parent
commit
c4acaeefd1
1 changed files with 3 additions and 0 deletions
  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;
 	}