mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-09 03:10:27 +00:00
Test output of colors for VGA graphics modes in examples/vga.c
This commit is contained in:
parent
726f04e8aa
commit
59a539201b
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue