mirror of
https://github.com/sigmasternchen/webcli
synced 2025-03-15 22:28:54 +00:00
initializing shell
This commit is contained in:
parent
989c99aba6
commit
ee0f7fc44c
1 changed files with 6 additions and 0 deletions
|
@ -3,4 +3,10 @@ window.onload = function() {
|
||||||
terminal.calculateSize(window.innerWidth, window.innerHeight);
|
terminal.calculateSize(window.innerWidth, window.innerHeight);
|
||||||
document.body.innerHTML += terminal.getBasicHTML();
|
document.body.innerHTML += terminal.getBasicHTML();
|
||||||
terminal.init();
|
terminal.init();
|
||||||
|
|
||||||
|
window.shell = new Shell();
|
||||||
|
shell.output = function(text) {
|
||||||
|
window.terminal.output(text);
|
||||||
|
};
|
||||||
|
shell.main([]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue