aboutsummaryrefslogtreecommitdiff
path: root/examples/read.lua
diff options
context:
space:
mode:
Diffstat (limited to 'examples/read.lua')
-rw-r--r--examples/read.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/read.lua b/examples/read.lua
index bd5cbff..4b57b54 100644
--- a/examples/read.lua
+++ b/examples/read.lua
@@ -37,7 +37,7 @@ while true do
37 if key == "A" then io.write(get_cursor_pos); io.flush() end 37 if key == "A" then io.write(get_cursor_pos); io.flush() end
38 38
39 -- check if we got a key or ANSI sequence 39 -- check if we got a key or ANSI sequence
40 if keytype == "key" then 40 if keytype == "char" then
41 -- just a key 41 -- just a key
42 local b = key:byte() 42 local b = key:byte()
43 if b < 32 then 43 if b < 32 then