fix error text peeking through the scroll text
lazyvim also changed the indentation of everything for some reason i don't know what's the name for "scroll text"
This commit is contained in:
@@ -14,7 +14,7 @@ local function loadfile(file)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function handleError(errorMessage)
|
local function handleError(errorMessage)
|
||||||
return(errorMessage.."\n \n"..debug.traceback())
|
return (errorMessage .. "\n \n" .. debug.traceback())
|
||||||
end
|
end
|
||||||
|
|
||||||
function loadBoot()
|
function loadBoot()
|
||||||
@@ -61,12 +61,14 @@ if not result then
|
|||||||
local function render()
|
local function render()
|
||||||
gpu.setForeground(0xFFFFFF)
|
gpu.setForeground(0xFFFFFF)
|
||||||
local i = 2
|
local i = 2
|
||||||
reason = "A fatal error has occurred.\nHalyde cannot continue.\n \n" .. tostring(reason or "unknown error"):gsub("\t", " ")
|
reason = "A fatal error has occurred.\nHalyde cannot continue.\n \n"
|
||||||
|
.. tostring(reason or "unknown error"):gsub("\t", " ")
|
||||||
for line in string.gmatch(reason, "([^\n]*)\n?") do
|
for line in string.gmatch(reason, "([^\n]*)\n?") do
|
||||||
gpu.set(2, i, line)
|
gpu.set(2, i, line)
|
||||||
i = i + 1
|
i = i + 1
|
||||||
end
|
end
|
||||||
gpu.set(1, resY - 1, string.rep("─", resX))
|
gpu.fill(1, resY - 1, resX, 1, "─")
|
||||||
|
gpu.fill(1, resY, resX, 1, " ")
|
||||||
gpu.setForeground(bgColor)
|
gpu.setForeground(bgColor)
|
||||||
gpu.setBackground(0xFFFFFF)
|
gpu.setBackground(0xFFFFFF)
|
||||||
gpu.set(2, resY, "🠅 🠄 🠇 🠆")
|
gpu.set(2, resY, "🠅 🠄 🠇 🠆")
|
||||||
@@ -75,7 +77,7 @@ if not result then
|
|||||||
gpu.set(4, resY, " / ")
|
gpu.set(4, resY, " / ")
|
||||||
gpu.set(9, resY, " / ")
|
gpu.set(9, resY, " / ")
|
||||||
gpu.set(14, resY, " / ")
|
gpu.set(14, resY, " / ")
|
||||||
gpu.set(20, resY, "Scroll" .. string.rep(" ", resX - 21))
|
gpu.set(19, resY, " Scroll" .. string.rep(" ", resX - 21))
|
||||||
end
|
end
|
||||||
render()
|
render()
|
||||||
beep(440, 0.2)
|
beep(440, 0.2)
|
||||||
|
|||||||
Reference in New Issue
Block a user