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
1 changed files with 2 additions and 2 deletions

4
pat
View File

@ -14,8 +14,8 @@ 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),
end='')
f"\x1b[38;2;{red};{green};{blue}m{string}",
end='')
parser = argparse.ArgumentParser(description="Output text from files with color.")
parser.add_argument("-n", "--number",