mirror of
https://github.com/Hilbis/Hilbish
synced 2025-03-31 02:33:23 +00:00
fix(greenhouse): remove goro usage
This commit is contained in:
parent
30830ed6ed
commit
017702ea0d
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user