diff options
Diffstat (limited to 'doc/print_colors.py')
-rwxr-xr-x | doc/print_colors.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/doc/print_colors.py b/doc/print_colors.py deleted file mode 100755 index ce040b33..00000000 --- a/doc/print_colors.py +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env python -""" -You can use this tool to display all supported colors and their color number. -It will exit after a keypress. -""" - -import curses -from curses import * - -@wrapper -def main(win): - def print_all_colors(attr): - for c in range(0, curses.COLORS): - init_pair(c, c, -1) - win.addstr(str(c) + ' ', color_pair(c) | attr) - use_default_colors() - win.addstr("available colors: %d\n\n" % curses.COLORS) - print_all_colors(0) - win.addstr("\n\n") - print_all_colors(A_BOLD) - win.refresh() - win.getch() - |