Skip to content

Instantly share code, notes, and snippets.

View npearson72's full-sized avatar

Nathan Pearson npearson72

View GitHub Profile
@npearson72
npearson72 / colortest.py
Created December 22, 2019 09:36 — forked from wolph/colortest.py
Testing 256 color shells using background colors and automatic shell width detection
#!/usr/bin/env python
from __future__ import print_function
import os
import shutil
import subprocess
def get_width(default=80):
'''Attempt to detect console width and default to 80'''