Fix rgbtoxterm tool to output the proper colors

This commit is contained in:
Connor Olding 2023-05-21 23:05:54 -07:00
parent 1422e96b4e
commit 9f580b4e47

View file

@ -107,7 +107,7 @@ void processarg(const char *arg) {
return;
}
fprintf(fout_, "%s[%s%d;5;%hhum%s", rawmode_ ? "\e" : "\\e",
emphasis_ ? "1;" : "", background_ ? 48 : 38, rgb2tty(r, g, b),
emphasis_ ? "1;" : "", background_ ? 48 : 38, rgb2tty(r, g, b).xt,
&"\n"[rawmode_]);
}