Cobbled together a setup.py
This commit is contained in:
parent
2a74911541
commit
62e62f1eac
3 changed files with 4 additions and 17 deletions
17
Makefile
17
Makefile
|
|
@ -1,17 +0,0 @@
|
|||
|
||||
PREFIX?=/usr/local
|
||||
|
||||
install:
|
||||
install -m 0755 pixelterm.py $(PREFIX)/bin/pixelterm
|
||||
install -m 0755 gifterm.py $(PREFIX)/bin/gifterm
|
||||
install -m 0755 unpixelterm.py $(PREFIX)/bin/unpixelterm
|
||||
install -m 0755 pngmeta.py $(PREFIX)/bin/pngmeta
|
||||
|
||||
uninstall:
|
||||
rm $(PREFIX)/bin/pixelterm
|
||||
rm $(PREFIX)/bin/gifterm
|
||||
rm $(PREFIX)/bin/unpixelterm
|
||||
rm $(PREFIX)/bin/pngmeta
|
||||
|
||||
reinstall: uninstall install
|
||||
|
||||
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
import os, sys, argparse, os.path, json
|
||||
|
||||
# Display an xterm-256color color palette on the terminal, including color ids
|
||||
|
||||
reset_sequence = '\033[39;49m'
|
||||
|
||||
def esc(i):
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ 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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue