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

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -