Skip to content

Instantly share code, notes, and snippets.

@TylerLeonhardt
Created January 6, 2026 20:48
Show Gist options
  • Select an option

  • Save TylerLeonhardt/777fb99447b48efb9f2dcd3c13922340 to your computer and use it in GitHub Desktop.

Select an option

Save TylerLeonhardt/777fb99447b48efb9f2dcd3c13922340 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3
def print_range(name, start, end, cols=16):
print()
print("═══════════════════════════════════════════════════════════════")
print(f" {name} (U+{start:04X}-U+{end:04X})")
print("═══════════════════════════════════════════════════════════════")
count = 0
for i in range(start, end + 1):
print(chr(i), end=' ')
count += 1
if count % cols == 0:
print()
print()
print("Terminal Custom Glyphs Test")
print("===========================")
# Box Drawing (U+2500-U+257F)
print_range("Box Drawing", 0x2500, 0x257F, 16)
# Block Elements (U+2580-U+259F)
print_range("Block Elements", 0x2580, 0x259F, 16)
# Braille Patterns (U+2800-U+28FF)
print_range("Braille Patterns", 0x2800, 0x28FF, 16)
# Powerline Symbols (U+E0A0-U+E0D4)
print_range("Powerline Symbols (Private Use Area)", 0xE0A0, 0xE0D4, 8)
# Progress Indicators (U+EE00-U+EE0B)
print_range("Progress Indicators (Private Use Area)", 0xEE00, 0xEE0B, 6)
# Git Branch Symbols (U+F5D0-U+F60D)
print_range("Git Branch Symbols (Private Use Area)", 0xF5D0, 0xF60D, 8)
# Symbols for Legacy Computing (U+1FB00-U+1FBFF)
print_range("Symbols for Legacy Computing", 0x1FB00, 0x1FBFF, 16)
print()
print("═══════════════════════════════════════════════════════════════")
print(" Powerline Prompt Alignment Test")
print("═══════════════════════════════════════════════════════════════")
print()
# Powerline separators: U+E0B0, U+E0B2
print(f"\033[44m\033[37m user@host \033[0m\033[34m\033[42m\uE0B0\033[30m ~/code \033[0m\033[32m\033[43m\uE0B0\033[30m main \033[0m\033[33m\uE0B0\033[0m")
print(f"\033[45m\033[37m branch \033[0m\033[35m\033[46m\uE0B0\033[30m status \033[0m\033[36m\033[41m\uE0B0\033[37m error \033[0m\033[31m\uE0B0\033[0m")
print()
print(f"\033[0m\033[34m\uE0B2\033[44m\033[37m right \033[0m\033[32m\uE0B2\033[42m\033[30m align \033[0m\033[33m\uE0B2\033[43m\033[30m test \033[0m")
print()
print("═══════════════════════════════════════════════════════════════")
print(" Box Drawing Alignment Test")
print("═══════════════════════════════════════════════════════════════")
print("┌─────────┬─────────┬─────────┐")
print("│ Cell 1 │ Cell 2 │ Cell 3 │")
print("├─────────┼─────────┼─────────┤")
print("│ Data A │ Data B │ Data C │")
print("└─────────┴─────────┴─────────┘")
print()
print("═══════════════════════════════════════════════════════════════")
print(" Block Element Progress Bar")
print("═══════════════════════════════════════════════════════════════")
print("Progress: ▓▓▓▓▓▓▓▓░░░░░░░ 50%")
print("Loading: █████████░░░░░░ 60%")
print()
print("═══════════════════════════════════════════════════════════════")
print(" Braille Pattern Sample")
print("═══════════════════════════════════════════════════════════════")
print("⠀⠁⠂⠃⠄⠅⠆⠇⠈⠉⠊⠋⠌⠍⠎⠏")
print("⣿⣾⣽⣼⣻⣺⣹⣸⣷⣶⣵⣴⣳⣲⣱⣰")
print()
print("Done! All ~800 custom glyph characters displayed.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment