This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Test program for ncurses extended color pairs. (by Sam Foster, may 2024) | |
# | |
# Generates 256 foreground colors, background color 0, to use the first 256 color pairs. | |
# Then does the same for BG color 1, then 2, etc. until we have 256 * 256 pairs. | |
# | |
# If it works, we should end up with every combination of FG colors 0-255 and BG colors 0-255. | |
# If it doesn't work right, the color pairs repeat themselves. | |
# |