From e0b5c0280e601439a19e6ac3341679252203efb7 Mon Sep 17 00:00:00 2001 From: Oleksandr Kozachuk Date: Fri, 6 Jan 2023 17:21:28 +0100 Subject: [PATCH] Integrate the REPL, now WASM32 works, just some functions missing. --- helwasm/index.html | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/helwasm/index.html b/helwasm/index.html index 0b90faa..bbfb999 100644 --- a/helwasm/index.html +++ b/helwasm/index.html @@ -70,6 +70,7 @@ .input { font-family: monospace; font-size: 16px; + white-space: pre; } @@ -117,16 +118,7 @@ } function executeCommand(command) { - switch (command) { - case "help": - return "Available commands: help, date, ls"; - case "date": - return hel.ok_add(1, 2).toString(); - case "ls": - return "file1.txt file2.txt file3.txt"; - default: - return "Command not found"; - } + return window.hel.hel_command(command); } return (