Post Reply 
Most up-to-date 48 emulator code (for command line)
05-03-2020, 02:23 AM
Post: #11
RE: Most up-to-date 48 emulator code (for command line)
I guess my point didn't come out as clear as I wanted. The console input code uses the standard sscanf which likely produces UTF8 directly on systems like Linux, but still there's no convenient keyboard shortcuts to the symbols that RPL needs to use. Still, if you use external keyboard macros it would work as-is.
On Windows you can use wscanf, but then you'll need to loop through the string and convert back to utf8. The ICU library uses 1.5 mb when I tried it, it's huge. NewRPL already includes a basic library to handle everything you need for utf8 conversion, so there's no need for external libraries but you still have to code that loop.
It's nearly trivial to code but still you don't get the macros with the proper symbols.
The idea would be to write a loop based on a getc() or similar keyboard input so you can assign the most commonly used RPL symbols to some keys.
I think that's the closest thing to what the OP wanted.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Most up-to-date 48 emulator code (for command line) - Claudio L. - 05-03-2020 02:23 AM



User(s) browsing this thread: 1 Guest(s)