This commit is contained in:
Raven Scott
2026-04-02 22:43:46 -04:00
parent 2e26b14250
commit c337a8aaa6
62 changed files with 1099 additions and 23 deletions
+12
View File
@@ -0,0 +1,12 @@
/** Shared helpers for drive-resident /bin scripts (prepended before each command). */
function bareStdin(ctx) {
return typeof ctx.shellStdin === 'string' ? ctx.shellStdin : ''
}
async function run(ctx, argv) {
globalThis.console.clear?.()
const w = globalThis.process?.stdout?.write
if (typeof w === 'function') {
w.call(globalThis.process.stdout, '\x1b[2J\x1b[3J\x1b[H')
}
}