Making the repl work

This commit is contained in:
2023-01-26 15:15:37 -06:00
parent 87daef0fdc
commit 598e57d758
2 changed files with 2 additions and 9 deletions
-8
View File
@@ -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
+1
View File
@@ -9,6 +9,7 @@
<body>
<div class="content">
<div class="terminal"></div>
<div class="reactRoot"></div>
<div class="instructions">
<h2>NovaForth Console</h2>
<p>