» Sat May 10, 2014 1:57 am
First of all, be sure to post a link to your project when you get it up and running! I'll create a topic for posting/discussing random LOLCODE projects.
As for your question, one annoying thing about the current LOLCODE spec is that it doesn't have a good way of converting between decimal and ASCII. However, there is a workaround:
You can insert the ASCII character with value 255 (or anything else, like 1, 251, and so on) in a text editor and this value should remain in any strings that contain it (it will be printed with VISIBLE or sent with PUT). For example, in vim you can open the file in binary mode with the -b flag and then enter the following command to insert the ASCII character with hex value ff (decimal value 255):
- Code: Select all
:r !echo -e "\xff"
This will show up as <ff> in vim and will output the value 255 in a VISIBLE statement, and it should send the value 255 with a PUT statement (though I have not yet tested this functionality).
Hope this helps.