Skip to content

Commit

Permalink
fix(greenhouse): remove goro usage
Browse files Browse the repository at this point in the history
  • Loading branch information
TorchedSammy committed Dec 26, 2023
1 parent 30830ed commit 017702e
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions nature/greenhouse/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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::
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
end)

while not done do
--
::continue::
end
ansikit.showCursor()
ansikit.screenMain()
Expand Down

0 comments on commit 017702e

Please sign in to comment.