v0.8.2 - Added arrow keys to navigate shell history as well as a blinking cursor which you cannot yet move.

This commit is contained in:
TheWahlolly
2025-04-27 21:16:50 +03:00
parent f478048976
commit 64a6a26404
4 changed files with 55 additions and 6 deletions
+2 -1
View File
@@ -1,8 +1,9 @@
print("\27[44m".._VERSION.."\27[0m shell")
print('Type "exit" to exit.')
termlib.readHistory["lua"] = {""}
while true do
print("\27[44mlua>\27[0m ", false)
local command = read()
local command = read("lua")
if command == "exit" then
return
else