Heh, \0, yes, OK. I've got that working now.
One more question: which wiki is the one to reference in other documentation? I'm (slowly) doing another getting started guide. Which of those two links is the one to put in it?
Dom's supplied the links for the classic library.
If you're doing the new library the print codes are documented in the tty directories in
https://github.com/z88dk/z88dk/tree/mas ... r/terminal . You have to use a driver that does tty_z88dk which is startup=1 (32 col), startup=5 (64 col), startup=9 (fzx).
The offset to get around \0 terminator has not been implemented in the newlib (
https://github.com/z88dk/z88dk/issues/227 ) but it needs to be fixed and can be done quickly if you are writing about it. Because the offset is not implemented you can send control codes via write() or putc() atm. The newlib can also send commands to the driver via ioctl().
You have to be careful with strings like this:
\x12\x01Hello\x12\x00, world!
because hex constants are greedily consumed by the compiler. It's maybe safer to split into strings to avoid unintended bugs:
"\x12\x01" "Hello" "\x12\x00" ", world!"
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!
http://sdm.link/slashdot