Fast and reasonably complete (framebuffer) terminal emulator (Zig fork)

Change how replacement characters are shown to be more in line with the Linux terminal

mintsuki cdd2a948 5eaf69f0

Changed files
+5 -2
+5 -2
term.c
···
if (cc == -1) {
size_t replacement_width = mk_wcwidth(ctx->code_point);
-
for (size_t i = 0; i < replacement_width; i++) {
-
ctx->raw_putchar(ctx, 8);
+
if (replacement_width > 0) {
+
ctx->raw_putchar(ctx, 0xfe);
+
}
+
for (size_t i = 1; i < replacement_width; i++) {
+
ctx->raw_putchar(ctx, ' ');
} else {
ctx->raw_putchar(ctx, cc);