Debian Codegraph @

tests/test_2.py

raw symbols SCIP
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3
4 """ Test foreground and background colors """
5
6 from colored.library import Library
7 from colored import fore, back, style
8
9
10 def main():
11
12 # Prints foreground colors
13 for name in Library.COLORS.keys():
14 print(f"{fore(name)}{name:>3}{style('reset')}", end=' ')
15
16 # Prints background colors
17 for name in Library.COLORS.keys():
18 print(f"{style(4, name)}{back(name)}{name:>3}{style('reset')}", end=' ')
19
20 # Prints underline with colors
21 for name in Library.COLORS.keys():
22 print(f"{style(4, name)}{name:>3}{style(59)}", end=' ')
23
24
25 if __name__ == '__main__':
26 main()