Minor improvement

This commit is contained in:
Lavender Perry 2021-12-19 17:31:18 -08:00
parent 2990e94c13
commit ec63eb4e58
Signed by untrusted user: elle
GPG key ID: EF8E44AF715C28A0

2
pat
View file

@ -14,7 +14,7 @@ first_file = True
line_str = lambda line: str(line).rjust(8, ' ') + ' '
color_print = lambda red, green, blue, string: print(
"\x1b[38;2;%d;%d;%dm%s" % (red, green, blue, string),
f"\x1b[38;2;{red};{green};{blue}m{string}",
end='')
parser = argparse.ArgumentParser(description="Output text from files with color.")