summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorThijs <thijs@thijsschreijer.nl>2024-06-03 21:46:04 +0200
committerThijs <thijs@thijsschreijer.nl>2024-06-03 21:46:04 +0200
commit98d68962584970bd467ab53b1d74cda46e322b15 (patch)
treecadb863507dc0728b76b8bee8bd7d2eaea1bc00c /examples
parent56db1511baeb0376a12915c69c1552b04010c26f (diff)
downloadluasystem-98d68962584970bd467ab53b1d74cda46e322b15.zip
fix docs, merging modules
Diffstat (limited to 'examples')
-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
if key == "A" then io.write(get_cursor_pos); io.flush() end
-- check if we got a key or ANSI sequence
- if keytype == "key" then
+ if keytype == "char" then
-- just a key
local b = key:byte()
if b < 32 then