xrsh-buildroot/buildroot-v86/board/v86/rootfs_overlay/root/bin/helloworld.js

8 lines
187 B
JavaScript
Executable File

#!/bin/js
msg = args.join(' ')
console.log(msg)
//alert(msg)
const term = document.querySelector('[isoterminal]').components.isoterminal.term
term.exec("logger bin/helloworld.js "+msg)