~ajpaon/image-to-ansi

1e196b476b270f4323d3468ee105b5b31a445f2c — Andrew Paon 2 years ago f471bd1
remove extra space in ANSI that confuses some terms
1 files changed, 2 insertions(+), 2 deletions(-)

M main.c
M main.c => main.c +2 -2
@@ 140,8 140,8 @@ int main(int argc, char *argv[]) {
    for (int x = 0; x < bmp.width; ++x) {
      hp += bytes_per_pixel;
      lp += bytes_per_pixel;
      printf("\033[48;2;%u;%u;%u m", hp[2], hp[1], hp[0]);
      printf("\033[38;2;%u;%u;%u m", lp[2], lp[1], lp[0]);
      printf("\033[48;2;%u;%u;%um", hp[2], hp[1], hp[0]);
      printf("\033[38;2;%u;%u;%um", lp[2], lp[1], lp[0]);
      fputs("\u2584", stdout);
    }