- Input ASCII string
- 12 Mar 2021 04:48:06 pm Permalink
I have been working on my second ICE program lately, and I have bumped into the problem of how to most efficiently input an ASCII string. I do NOT want to use the input function that ICE already has, because it doesn't work well, and the screen is messed up afterwards (and I did exit from graphics mode when using the input function). I discovered that I could make an appvar for each mode of input (caps, lowercase, math), and just seek to the offset in the relevant appvar (based on the last keypress value) and copy 1 character to an os_string to serve as the last inputted character. However, I'm sure that all the other C and ICE programs out there use some way more efficient method because they don't need to include several appvars (only for ASCII data) and most of them input ASCII characters fairly smoothly (a couple examples are Hexaedit and Contagion). So, if you already know or came up with an efficient method of text input for ICE or C (but especially ICE) in which you can be in graphics mode and use the TI-84 PCE's full ASCII table (~50 chars), please tell me about it (if U want to)! Thank you in advance!