From 59a539201bf2d45ac7c940c59e54fe1e66de5027 Mon Sep 17 00:00:00 2001 From: tkchia Date: Tue, 4 Oct 2022 10:00:19 +0000 Subject: [PATCH] Test output of colors for VGA graphics modes in examples/vga.c --- examples/vga.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/vga.c b/examples/vga.c index 262dc2a30..21f68017e 100644 --- a/examples/vga.c +++ b/examples/vga.c @@ -49,12 +49,12 @@ int main(int argc, char *argv[]) { printf("res = %d?\n", res); 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 for (;;) { 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); } } }