Commit Graph

2 Commits

Author SHA1 Message Date
Gleb Mazovetskiy a9c0f5764c Console: Use a REPL environment to run code
In the REPL environment, we set `print` to print to the UI console
instead of stdout.
2023-11-01 20:05:02 +00:00
Gleb Mazovetskiy 3ea4996367 Add a basic Quake-style console
Enabled only in Debug mode.

Runs Lua similar to the `lua` CLI.
Supports multiline input with Shift+Enter.

Missing features:
1. Scrollback.
2. Input history on up/down.

Open with backtick, close with Esc.
2023-10-31 23:19:56 +00:00