This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
jay5476's profile picture

How To Get All Cc Characters

Started by jay5476, 19 August 2013 - 02:09 AM
jay5476 #1
Posted 19 August 2013 - 04:09 AM
how do I get all characters in CC, I know you have to use string.char(byte) but how do you only get the ones in CC
LBPHacker #2
Posted 19 August 2013 - 05:40 AM
What do you mean by "the ones in CC"? Anyways, here's a 7-bit ASCII chart (don't mind the first 32 characters, those are not printable) (nor is #127, DEL). Based on that, a capital A has the ASCII value of 65, so "A" is the same as string.char(65).
jay5476 #3
Posted 19 August 2013 - 06:32 AM
thanks I thought I tried this before and it errored and I could only use for I = 1, 26 do print(string.char(64+i)) end to get all letters