about summary refs log tree commit diff stats
path: root/gemini.tlv
diff options
context:
space:
mode:
Diffstat (limited to 'gemini.tlv')
-rw-r--r--gemini.tlv6
1 files changed, 3 insertions, 3 deletions
diff --git a/gemini.tlv b/gemini.tlv
index 441824a..2198c7a 100644
--- a/gemini.tlv
+++ b/gemini.tlv
@@ -315,11 +315,11 @@
     >function update(window)
     >  local key = curses.getch()
     >  local screen_rows, screen_cols = window:getmaxyx()
-    >  if key == 258 then  -- down arrow
+    >  if key == curses.KEY_DOWN then
     >    next_link()
-    >  elseif key == 259 then  -- up arrow
+    >  elseif key == curses.KEY_UP then
     >    previous_link()
-    >  elseif key == 260 then  -- left arrow
+    >  elseif key == curses.KEY_LEFT then
     >    if #state.history > 1 then
     >      table.remove(state.history)
     >      gemini_get(table.remove(state.history))