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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user