and again some changes

This commit is contained in:
overflowerror 2014-08-08 14:21:52 +02:00
parent fdd2e4e0e6
commit 551dafdeec

View file

@ -5,8 +5,13 @@ window.onload = function() {
terminal.init();
window.shell = new Shell();
shell.exit = function(code) {
console.log("shell killed with status code " + code);
console.log("restarting shell");
onload();
}
shell.output = function(text) {
window.terminal.output(text);
terminal.output(text);
};
terminal.keyEvent = function (keyEvent) {
shell.handleKey(keyEvent);