Test output of colors for VGA graphics modes in examples/vga.c

This commit is contained in:
tkchia 2022-10-04 10:00:19 +00:00
parent 726f04e8aa
commit 59a539201b

View file

@ -49,12 +49,12 @@ int main(int argc, char *argv[]) {
printf("res = %d?\n", res); printf("res = %d?\n", res);
return -1; return -1;
} }
printf("Hello World! %.19Lg\n", atan2l(x, y)); printf("\e[92;44mHello World!\e[0m %.19Lg\n", atan2l(x, y));
// read/print loop so machine doesn't reset on metal // read/print loop so machine doesn't reset on metal
for (;;) { for (;;) {
if ((res = readansi(0, buf, 16)) > 0) { if ((res = readansi(0, buf, 16)) > 0) {
printf("got %`'.*s\r\n", res, buf); printf("got \e[97m%`'.*s\e[0m\r\n", res, buf);
} }
} }
} }