about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--life.teliva7
1 files changed, 6 insertions, 1 deletions
diff --git a/life.teliva b/life.teliva
index 01bfee9..b18298f 100644
--- a/life.teliva
+++ b/life.teliva
@@ -219,6 +219,11 @@ function load_file(window, filename)
 end
 
 
+function update(window)
+  curses.getch()  -- just check for menu keys
+end
+
+
 if (#arg == 0) then
   -- by default, start from a deterministically random state
   for i=1,lines*4 do
@@ -279,7 +284,7 @@ end
 
 while true do
   render(window)
-  curses.getch()  -- just check for menu keys
+  update(window)
 --?   sleep(0.1)
   step()
 end