v1.8.0 - Fixed a bug with shell not executing files in the working directory, added json library, changed all configs to json, added config auto-generation so they don't reset after an update.

This commit is contained in:
TheWahlolly
2025-05-31 09:55:23 +03:00
parent 34f716beaa
commit 41d55113e5
13 changed files with 92 additions and 115 deletions
+4 -2
View File
@@ -208,8 +208,8 @@ function _G.read(readHistoryType, prefix, defaultText)
while true do
--ocelot.log(curtext)
termlib.cursorPosX = termlib.cursorPosX - 1
local args = {event.pull("key_down", 0.5)}
if args[4] then
local args = {event.pull("key_down", "clipboard", 0.5)}
if args[1] == "key_down" and args[4] then
cursorWhite = true
local keycode = args[4]
local key = keyboard.keys[keycode]
@@ -258,6 +258,8 @@ function _G.read(readHistoryType, prefix, defaultText)
end
termlib.cursorPosX, termlib.cursorPosY = cursorPosX, cursorPosY
termlib.write(prefix .. curtext)
elseif args[1] == "clipboard" then
else
cursorWhite = not cursorWhite
end