aboutsummaryrefslogtreecommitdiff
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.tar.gz
luasystem-98d68962584970bd467ab53b1d74cda46e322b15.tar.bz2
luasystem-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
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