added new build
Some checks failed
/ mirror_to_github (push) Failing after 1m18s
/ test (push) Successful in 10s

This commit is contained in:
Leon van Kammen 2025-06-20 16:45:29 +02:00
parent d424328c9a
commit 95c91c72d8
4 changed files with 16 additions and 15 deletions

@ -1 +1 @@
Subproject commit f240e8d5c6bcdb5a5b1d9de8ade1a3fdd16931e5
Subproject commit 07d4fab38d1340184c5e0b1039e7ef60d72c2e12

BIN
xrsh.com

Binary file not shown.

View file

@ -1 +1 @@
07e872b54c792e30d0f662eaf61a024adfc3efdd8d0e46ccc32c7c0b301ad1f8 xrsh.com
92158dd02bab4b8296702dfda7b8f1bbc6188890a5b5c32dbe582395f35bbca4 xrsh.com

27
xrsh.js
View file

@ -546,6 +546,9 @@ if( typeof AFRAME != 'undefined '){
httpfs: "com/isoterminal/feat/httpfs.js",
autorestore: "com/isoterminal/feat/autorestore.js",
}
if( document.location.hash.match(/#test/) || this.data.debug ){
features['tests'] = "tests/index.js"
}
if( this.data.emulator == 'fbterm' ){
features['fbtermjs'] = "com/isoterminal/term.js"
features['fbterm'] = "com/isoterminal/feat/term.js"
@ -605,7 +608,6 @@ if( typeof AFRAME != 'undefined '){
this.term.addEventListener('ready', (e) => {
instance.dom.classList.remove('blink')
this.term.emit('status',"running")
if( this.data.debug ) this.runTests()
})
this.term.addEventListener('status', function(e){
@ -652,14 +654,6 @@ if( typeof AFRAME != 'undefined '){
}
},
runTests: async function(){
await AFRAME.utils.require({
"test_util": "tests/util.js",
"test_isoterminal":"tests/ISOTerminal.js"
})
console.test.run()
},
setupPasteDrop: function(){
this.el.addEventListener('pasteFile', (e) => {
e.preventDefault() // prevent bubbling up to window (which is triggering this initially)
@ -2203,6 +2197,7 @@ ISOTerminal.prototype.exec = function(opts){
const shellscript = opts[0];
const cb = opts[1];
let cmd = `printf "\n\r"; { sh<<EOF\n ${shellscript}; \nEOF\n} &> /mnt/exec;\n`
console.log(cmd)
if( cb ){
window.cb = cb
cmd += `js 'document.querySelector("[isoterminal]").emit("read_file", ["exec", window.cb ])';\n`
@ -2212,7 +2207,7 @@ ISOTerminal.prototype.exec = function(opts){
ISOTerminal.prototype.hook = function(hookname,args){
let cmd = `{ type hook || source /etc/profile.sh; }; hook ${hookname} "${args.join('" "')}"`
this.exec(cmd)
this.exec([cmd])
}
ISOTerminal.prototype.serial_input = 0; // can be set to 0,1,2,3 to define stdinput tty (xterm plugin)
@ -2303,8 +2298,14 @@ ISOTerminal.prototype.start = function(opts){
},
cmdline: "rw root=host9p rootfstype=9p rootflags=trans=virtio,cache=loose modules=virtio_pci tsc=reliable init_on_freg|=on vga=ask", //vga=0x122",
net_device:{
relay_url:"fetch", // or websocket proxy "wss://relay.widgetry.org/",
type:"virtio"
//type:"ne2k",
relay_url:"fetch"
//relay_url:"wss://relay.widgetry.org/"
//local_http: true,
//type:"virtio",
//relay_url:"fetch",
//cors_proxy: "https://corsproxy.io/"
},
//bzimage_initrd_from_filesystem: true,
//filesystem: {
@ -4010,7 +4011,7 @@ ISOTerminal.prototype.bootMenu = function(e){
}
}
ISOTerminal.addEventListener('bootMenu', function(e){ this.bootMenu(e) } )
ISOTerminal.addEventListener('bootMenu', function(e){this.bootMenu(e) })
ISOTerminal.prototype.boot = async function(e){
// set environment