Some output from the Linux VM!!

This commit is contained in:
blinry 2023-09-07 11:43:51 +02:00
parent 49a3f880fe
commit ad8d8f50d1
6 changed files with 53 additions and 49 deletions
web/web-shell

View file

@ -3,11 +3,11 @@ var emulator;
// Whether or not to restore the VM state from a file. Set to false to perform a regular boot.
let restoreState = true;
async function testy() {
return await new Promise((resolve, reject) => {
function testy(cmd) {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve("testy");
}, 1000);
resolve("testy!!" + cmd);
}, 100);
});
}
window.testy = testy;
@ -40,7 +40,7 @@ function run_in_vm(cmd) {
});
}
window.run_in_vm = run_in_vm;
window.web_shell = { run_in_vm: run_in_vm };
window.web_shell = { run_in_vm, testy };
/*