Skip to content

Commit 9ada23d

Browse files
committed
lib: pixel: print: remove all UTF-8 characters
This is a temporary test for CI only. Signed-off-by: Josuah Demangeon <me@josuah.net>
1 parent 5570f34 commit 9ada23d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/pixel/print.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@
1414

1515
static void pixel_print_truecolor(const uint8_t rgb24row0[3], const uint8_t rgb24row1[3])
1616
{
17-
printf("\e[48;2;%u;%u;%um\e[38;2;%u;%u;%um▄", rgb24row0[0], rgb24row0[1], rgb24row0[2],
17+
printf("\e[48;2;%u;%u;%um\e[38;2;%u;%u;%umm", rgb24row0[0], rgb24row0[1], rgb24row0[2],
1818
rgb24row1[0], rgb24row1[1], rgb24row1[2]);
1919
}
2020

2121
static void pixel_print_256color(const uint8_t rgb24row0[3], const uint8_t rgb24row1[3])
2222
{
23-
printf("\e[48;5;%um\e[38;5;%um▄", pixel_rgb24_to_256color(rgb24row0),
23+
printf("\e[48;5;%um\e[38;5;%umm", pixel_rgb24_to_256color(rgb24row0),
2424
pixel_rgb24_to_256color(rgb24row1));
2525
}
2626

2727
static void pixel_print_256gray(uint8_t gray8row0, uint8_t gray8row1)
2828
{
29-
printf("\e[48;5;%um\e[38;5;%um▄", pixel_gray8_to_256color(gray8row0),
29+
printf("\e[48;5;%um\e[38;5;%umm", pixel_gray8_to_256color(gray8row0),
3030
pixel_gray8_to_256color(gray8row1));
3131
}
3232

@@ -45,7 +45,7 @@ static inline void pixel_print_rgb24(const uint8_t *rgb24, size_t size, uint16_t
4545
}
4646
fn(&rgb24[i], &rgb24[i + pitch]);
4747
}
48-
printf("\e[m\n");
48+
printf("\e[m|\n");
4949

5050
/* Skip the second h being printed at the same time */
5151
i += pitch;
@@ -88,7 +88,7 @@ static inline void pixel_print_rgb565(const uint8_t *rgb565, size_t size, uint16
8888

8989
fn(rgb24[0], rgb24[1]);
9090
}
91-
printf("\e[m\n");
91+
printf("\e[m|\n");
9292

9393
/* Skip the second h being printed at the same time */
9494
i += pitch;
@@ -149,7 +149,7 @@ static inline void pixel_print_yuyv(const uint8_t *yuyv, size_t size, uint16_t w
149149
fn(&rgb24x2[0][0], &rgb24x2[1][0]);
150150
fn(&rgb24x2[0][3], &rgb24x2[1][3]);
151151
}
152-
printf("\e[m\n");
152+
printf("\e[m|\n");
153153

154154
/* Skip the second h being printed at the same time */
155155
i += pitch;
@@ -327,7 +327,7 @@ void pixel_print_rgb24hist(const uint16_t *rgb24hist, size_t size, uint16_t heig
327327

328328
pixel_print_256color(rgb24row0, rgb24row1);
329329
}
330-
printf("\e[m - %u\n", h * max / height);
330+
printf("\e[m| - %u\n", h * max / height);
331331
}
332332

333333
pixel_print_hist_scale(size / 3);
@@ -348,7 +348,7 @@ void pixel_print_y8hist(const uint16_t *y8hist, size_t size, uint16_t height)
348348

349349
pixel_print_256gray(gray8row0, gray8row1);
350350
}
351-
printf("\e[m - %u\n", h * max / height);
351+
printf("\e[m| - %u\n", h * max / height);
352352
}
353353

354354
pixel_print_hist_scale(size);

0 commit comments

Comments
 (0)