summary refs log tree commit diff
path: root/bin/scheme.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-04-16 22:37:02 -0400
committerJune McEnroe <june@causal.agency>2018-04-16 22:37:19 -0400
commit0ec89d0df5385cf40b204dff84ea47ded7985236 (patch)
treeaf718e3bbd7588cc060fe5669f2a650b3a93660b /bin/scheme.c
parentAdd 0 bind to brot (diff)
downloadsrc-0ec89d0df5385cf40b204dff84ea47ded7985236.tar.gz
src-0ec89d0df5385cf40b204dff84ea47ded7985236.zip
Always hexadecimal in uppercase
I still haven't been able to actually test scheme's Linux console
output...
Diffstat (limited to '')
-rw-r--r--bin/scheme.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/scheme.c b/bin/scheme.c
index 7ca32cc3..f3a386a8 100644
--- a/bin/scheme.c
+++ b/bin/scheme.c
@@ -121,7 +121,7 @@ static struct Rgb toRgb(struct Hsv hsv) {
 static void hex(const struct Hsv *hsv, size_t len) {
     for (size_t i = 0; i < len; ++i) {
         struct Rgb rgb = toRgb(hsv[i]);
-        printf("%02x%02x%02x\n", rgb.r, rgb.g, rgb.b);
+        printf("%02X%02X%02X\n", rgb.r, rgb.g, rgb.b);
     }
 }
 
@@ -129,7 +129,7 @@ static void linux(const struct Hsv *hsv, size_t len) {
     if (len > 16) len = 16;
     for (size_t i = 0; i < len; ++i) {
         struct Rgb rgb = toRgb(hsv[i]);
-        printf("\x1B]P%zx%02x%02x%02x", i, rgb.r, rgb.g, rgb.b);
+        printf("\x1B]P%zX%02X%02X%02X", i, rgb.r, rgb.g, rgb.b);
     }
 }