Skip to content

Instantly share code, notes, and snippets.

@soopyc
Last active December 31, 2023 18:26
Show Gist options
  • Save soopyc/1c137dffb7afc4071a5c4d90c1885d26 to your computer and use it in GitHub Desktop.
Save soopyc/1c137dffb7afc4071a5c4d90c1885d26 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3
# Maintainer: soopyc (@cassie@astro.soopy.moe)
# SPDX-License-Identifier: CC0-1.0
a = []
b = []
for color in range(40, 48):
a.append(f"\x1b[{color}m {color} ")
for color in range(100, 108):
b.append(f"\x1b[{color}m {color} ")
print("\n\x1b[38;2;255;255;255m" + "\x1b[49m ".join(a)+"\x1b[0m" + "\n\x1b[38;2;255;255;255m" + "\x1b[49m ".join(b)+"\x1b[0m")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment