mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-07 03:49:56 +00:00
added v86 state
This commit is contained in:
parent
bbe6ad2cbc
commit
f6834d189f
BIN
data/bios.bin
BIN
data/bios.bin
Binary file not shown.
BIN
data/v86.wasm
BIN
data/v86.wasm
Binary file not shown.
BIN
data/v86state.bin
Normal file
BIN
data/v86state.bin
Normal file
Binary file not shown.
BIN
data/vgabios.bin
BIN
data/vgabios.bin
Binary file not shown.
9
dist/terminal.js
vendored
9
dist/terminal.js
vendored
@ -132030,10 +132030,13 @@ function start() {
|
||||
vga_bios: {
|
||||
url: '../data/vgabios.bin',
|
||||
},
|
||||
wasm_path: '../data/v86.wasm',
|
||||
cdrom: {
|
||||
url: '../data/linux.iso',
|
||||
},
|
||||
wasm_path: '../data/v86.wasm',
|
||||
initial_state: {
|
||||
url: '../data/v86state.bin'
|
||||
},
|
||||
autostart: true,
|
||||
disable_keyboard: true,
|
||||
});
|
||||
@ -132041,9 +132044,6 @@ function start() {
|
||||
this.emit('data', '\r\nVM ready, booting\r\n');
|
||||
setTimeout(() => {
|
||||
this.emit('data', '[Yes, this is a real demo]\r\n');
|
||||
this.loadingInterval = setInterval(() => {
|
||||
this.emit('data', '.');
|
||||
}, 500);
|
||||
}, 2000);
|
||||
});
|
||||
NodePTY.vm.add_listener('download-progress', (e) => {
|
||||
@ -132051,7 +132051,6 @@ function start() {
|
||||
});
|
||||
NodePTY.vm.add_listener('download-error', (e) => {
|
||||
this.emit('data', '\r\nDownload error\r\n');
|
||||
clearInterval(this.loadingInterval);
|
||||
});
|
||||
}
|
||||
else {
|
||||
|
2
dist/terminal.js.map
vendored
2
dist/terminal.js.map
vendored
File diff suppressed because one or more lines are too long
11
terminal.ts
11
terminal.ts
@ -17,7 +17,6 @@ async function start () {
|
||||
}
|
||||
static vm: any
|
||||
loggedIn = false
|
||||
loadingInterval: any
|
||||
|
||||
constructor () {
|
||||
if (!NodePTY.vm) {
|
||||
@ -28,10 +27,13 @@ async function start () {
|
||||
vga_bios: {
|
||||
url: '../data/vgabios.bin',
|
||||
},
|
||||
wasm_path: '../data/v86.wasm',
|
||||
cdrom: {
|
||||
url: '../data/linux.iso',
|
||||
},
|
||||
wasm_path: '../data/v86.wasm',
|
||||
initial_state: {
|
||||
url: '../data/v86state.bin'
|
||||
},
|
||||
autostart: true,
|
||||
disable_keyboard: true,
|
||||
})
|
||||
@ -39,9 +41,6 @@ async function start () {
|
||||
this.emit('data', '\r\nVM ready, booting\r\n')
|
||||
setTimeout(() => {
|
||||
this.emit('data', '[Yes, this is a real demo]\r\n')
|
||||
this.loadingInterval = setInterval(() => {
|
||||
this.emit('data', '.')
|
||||
}, 500)
|
||||
}, 2000)
|
||||
})
|
||||
NodePTY.vm.add_listener('download-progress', (e) => {
|
||||
@ -49,7 +48,6 @@ async function start () {
|
||||
})
|
||||
NodePTY.vm.add_listener('download-error', (e) => {
|
||||
this.emit('data', '\r\nDownload error\r\n')
|
||||
clearInterval(this.loadingInterval)
|
||||
})
|
||||
} else {
|
||||
setTimeout(() => {
|
||||
@ -59,7 +57,6 @@ async function start () {
|
||||
|
||||
NodePTY.vm.add_listener('serial0-output-char', char => {
|
||||
this.emit('data', char)
|
||||
clearInterval(this.loadingInterval)
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user