about summary refs log tree commit diff stats
path: root/src/hanoi.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/hanoi.lua')
-rw-r--r--src/hanoi.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/hanoi.lua b/src/hanoi.lua
index 6a2311d..f3d08fa 100644
--- a/src/hanoi.lua
+++ b/src/hanoi.lua
@@ -36,8 +36,7 @@ end
 
 local function render(screen)
   screen:clear()
-  local lines = curses.lines()
-  local cols = curses.cols()
+  local lines, cols = screen:getmaxyx()
   local line = math.floor(lines/2)
   local col = math.floor(cols/4)
   for i,t in ipairs(tower) do