However when I run the program on the VIC20 emulator of VICE, the program terminates without printing any visible output (except for the "READY." from the OS). It turned out that the text is actually there, but it was printed with white characters on white background, although the foreground color was the default blue.
Compiling the same program forAfter adding a clrscr()
command, cprintf
is working:
#include <VIC20> /* this line seems to have no effect */
#include <stdlib.h>
#include <conio.h>
int main (void)
{
clrscr();
cprintf ("Hello world!\r\n");
return EXIT_SUCCESS;
}
On the C64 the printing works as intendedindependently if there is a clrscr()
or not.
Am I missing somethingWhat is the reason that cprintf
plays up in the version without the clrscr()
?