feat: add cursor blinking
This commit is contained in:
@@ -368,12 +368,13 @@ function drawCommandBar(w, y)
|
|||||||
|
|
||||||
term.write("$ ")
|
term.write("$ ")
|
||||||
|
|
||||||
local startingIndex = commandBuffer:len() - w + 3
|
local startingIndex = commandBuffer:len() - w + 4
|
||||||
if startingIndex < 0 then
|
if startingIndex < 0 then
|
||||||
startingIndex = 0
|
startingIndex = 0
|
||||||
end
|
end
|
||||||
|
|
||||||
term.write(commandBuffer:sub(startingIndex))
|
term.write(commandBuffer:sub(startingIndex))
|
||||||
|
term.setCursorBlink(true)
|
||||||
end
|
end
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
|
|||||||
Reference in New Issue
Block a user