From 5e763123f87422e00810bacc0346936a2ae52d3d Mon Sep 17 00:00:00 2001 From: jaseg Date: Tue, 30 Jul 2013 13:33:07 +0200 Subject: Removed standard colors 0-15 for portability. Removed pygments dep. Fixed setup.py --- resolvecolor | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100755 resolvecolor (limited to 'resolvecolor') 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()])) - -- cgit