mirror of
https://github.com/sigmasternchen/webcli
synced 2025-03-15 06:08:54 +00:00
and again some changes
This commit is contained in:
parent
fdd2e4e0e6
commit
551dafdeec
1 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue