fixed spacing

This commit is contained in:
tater 2018-06-24 03:27:18 -05:00
parent 6f2332ff71
commit 6d39d31c2c

View File

@ -331,22 +331,20 @@ readchar(int i, glyph_t *glyph, font_t *font)
glyph->cell[i].color = 0; glyph->cell[i].color = 0;
} }
/* unsure why tbqh */
p += 2;
while (*p) { while (*p) {
ch = *p; ch = *p;
p++; p++;
color = *p;
p++;
if (ch == '\r') { if (ch == '\r') {
ch = ' ';
row++; row++;
col = 0; col = 0;
p++; color = 0;
} else { } else {
color = *p;
p++;
#ifdef DEBUG #ifdef DEBUG
if (ch == 0x09) if (ch == 0x09)
ch = 'T'; ch = 'T';
@ -480,7 +478,12 @@ printstr(const char *str, font_t *font)
} else { } else {
printf("\x03"); printf("\x03");
} }
for (int s = 0; s < font->spacing; s++) {
printf(" ");
}
} }
if (opt.color == COLOR_ANSI) { if (opt.color == COLOR_ANSI) {
printf("\x1b[0m\n"); printf("\x1b[0m\n");
} else { } else {