fix(greenhouse): remove goro usage

pull/276/merge
sammyette 2023-12-26 12:52:39 -04:00
parent 30830ed6ed
commit 017702ea0d
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 15 additions and 18 deletions

View File

@ -284,25 +284,22 @@ function Greenhouse:initUi()
ansikit.clear(true)
self:draw()
hilbish.goro(function()
while not done do
local c = read()
self:keybind('Ctrl-D', function()
done = true
end)
if self.keybinds[c] then
self.keybinds[c](self)
else
self:input(c)
end
::continue::
end
end)
while not done do
--
local c = read()
self:keybind('Ctrl-Q', function()
done = true
end)
self:keybind('Ctrl-D', function()
done = true
end)
if self.keybinds[c] then
self.keybinds[c](self)
else
self:input(c)
end
::continue::
end
ansikit.showCursor()
ansikit.screenMain()