Fix rgbtoxterm tool to output the proper colors (#819)

This commit is contained in:
Connor 2023-05-27 01:30:24 +00:00 committed by GitHub
parent 90645f4dac
commit 992a4638ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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_]);
}