Merge pull request #32 from chani/patch-1

Update main.js
This commit is contained in:
Paris Kasidiaris
2015-09-08 17:29:06 +03:00
+3 -3
View File
@@ -1,12 +1,12 @@
var terminalContainer = document.getElementById('terminal-container'),
term = new Terminal(),
prompt = '> ';
shellprompt = '> ';
term.open(terminalContainer);
term.fit();
term.prompt = function () {
term.write('\r\n' + prompt);
term.write('\r\n' + shellprompt);
};
term.writeln('Welcome to xterm.js');
@@ -29,4 +29,4 @@ term.on('key', function (key, ev) {
} else if (printable) {
term.write(key);
}
});
});