Closed Fabrizio-Caruso closed 6 years ago
Docs are the extensions to the console for the ZX are here: https://github.com/z88dk/z88dk/wiki/Platform---Sinclair-ZX-Spectrum#console-driver-modes
@suborb THANKS a lot! So, I will need something like: printf("%c%c",1,32); ? Why not the same API as the one for targets with the 6847 when you use an explicit screen mode command?
The screen modes came later on - here it's the same screen mode but a different font size.
Having it in the stream means that it's possible mix both 64 and 32 column text on the same display.
Adding an ioctl probably does make sense - it would do a CLS at the same time (as does every other port).
@suborb The background color by default is not black as in all other targets with udg support (when black is available). It would be cool to have the same bahavior and/or have common api for this. I have the same problem with the C128
Have you tried textbackground() ?
Thanks! It does work for the Spectrum but not for the C128 (which does not have it)! Is there a cross-target solution for the border color?
There should be one for -clib=ansi unless there’s a typo anywhere. You can always send the vt100 escape code.
There’s bordercolour() - it may not be implemented on all targets though.
I am getting
Removing -pragma-define:ansicolumns=32 has no effect. Should I use clib=ansi, clib=default?