diff --git a/vweb/src/app.js b/vweb/src/app.js index 548dac3..e5c8dbc 100644 --- a/vweb/src/app.js +++ b/vweb/src/app.js @@ -14,14 +14,6 @@ term.loadAddon(rl) term.open(document.getElementsByClassName('terminal')[0]) term.write('Loading...\r\n') -const handleKey = ({key, domEvent: { key: mnemonic }}) => { - if (mnemonic === 'Enter') { - console.log(mnemonic) - } else { - term.write(key) - } -} - init().then(async () => { const cpu = new WasmCPU() syms = JSON.parse(NovaForth.symbols()) // Grab the symbol table for the ROM so we can poke things by name @@ -69,4 +61,4 @@ function eval4th(cpu, line) { cpu.poke24(syms.emit_cursor, 0) // Re-clear the output buffer return str -} \ No newline at end of file +} diff --git a/vweb/src/index.html b/vweb/src/index.html index d39dbfc..6736dc4 100644 --- a/vweb/src/index.html +++ b/vweb/src/index.html @@ -9,6 +9,7 @@
+

NovaForth Console