feat: enhanced emulated bash terminal (by using browser's input box pop-up loop)

This commit is contained in:
Xiaohan-Tian
2026-04-10 13:47:37 -07:00
parent 1ff9bfcac4
commit 4917e54048
2 changed files with 57 additions and 2 deletions
+4 -2
View File
@@ -17,8 +17,10 @@ await KGMidiInput.instance().initialize();
// Attach debugger to global window in development mode
if (import.meta.env.DEV) {
(window as unknown as { KGDebugger: KGDebugger }).KGDebugger = KGDebugger.instance();
console.log('🔧 KGDebugger attached to window - try: KGDebugger.help()');
const dbg = KGDebugger.instance();
(window as unknown as { KGDebugger: KGDebugger; sh: () => Promise<void> }).KGDebugger = dbg;
(window as unknown as { sh: () => Promise<void> }).sh = () => dbg.startShell();
console.log('🔧 KGDebugger attached to window - try: KGDebugger.help() or sh()');
}
// Start audio context on first user interaction