diff options
author | jaseg <s@jaseg.de> | 2013-07-30 13:33:07 +0200 |
---|---|---|
committer | jaseg <s@jaseg.de> | 2013-07-30 13:43:23 +0200 |
commit | 5e763123f87422e00810bacc0346936a2ae52d3d (patch) | |
tree | db51c86622847e6e46dd1687cba90a71b7d72cc7 /resolvecolor | |
parent | 76579920ef33af869ed9c643234fdb4a3dfbd7a1 (diff) | |
download | pixelterm-5e763123f87422e00810bacc0346936a2ae52d3d.tar.gz pixelterm-5e763123f87422e00810bacc0346936a2ae52d3d.tar.bz2 pixelterm-5e763123f87422e00810bacc0346936a2ae52d3d.zip |
Removed standard colors 0-15 for portability. Removed pygments dep. Fixed setup.py
Diffstat (limited to 'resolvecolor')
-rwxr-xr-x | resolvecolor | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/resolvecolor b/resolvecolor deleted file mode 100755 index 7dc6537..0000000 --- a/resolvecolor +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env python - -import os, sys, argparse, os.path, json, re -from pygments.formatters import terminal256 - -formatter = terminal256.Terminal256Formatter() - -# Resolve HTML-style hex RGB color codes to xterm-256color color numbers - -if len(sys.argv) != 2: - print('Usage: resolvecolor.py #RRGGBB') - exit() - -print(formatter._closest_color(*[int(s, 16) for s in re.match('#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})', sys.argv[1]).groups()])) - |