Enter Key string.byte number in Lua -
i use detect space in string in lua:
if string.byte(" ")==32 blah blah
what return number (instead of 32) enter key or new line in lua?
these numbers denote ascii codes each character. here's chart future reference (but 127, extended ascii not supported) newline 10.
you can print list following code:
for i=1,127 print(i .. " = " .. string.char(i)) end
however, command characters (such newline) difficult interpret.
Comments
Post a Comment