there was a wrong representation of the newline code

This commit is contained in:
overflowerror 2014-05-23 22:54:11 +02:00
parent 35ee5b67b4
commit b92c0ce122

View file

@ -550,7 +550,7 @@ Emulator.Output.lineShift = function() {
Emulator.Output.normalOutput = function(text) { Emulator.Output.normalOutput = function(text) {
Emulator.Output.cursorOff(); Emulator.Output.cursorOff();
for(var i = 0; i < text.length; i++) { for(var i = 0; i < text.length; i++) {
if (text[i] == "\n") { if (KeyCodes.isEnter(text.charCodeAt(i))) {
Emulator.Output.moveCursor(0, 1, true); Emulator.Output.moveCursor(0, 1, true);
Emulator.Output.xpos = 0; Emulator.Output.xpos = 0;
} else { } else {