1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
Installation
============
With pip
```bash
$ pip install xtermcolor
```
Using setup.py
```bash
$ python setup.py install
```
Command Line Usage
==================
$ xtermcolor --help
usage: xtermcolor [-h] [--color COLOR] [--compat {xterm,vt100}] {convert,list}
xtermcolor: 256 terminal color library
positional arguments:
{convert,list} Actions
optional arguments:
-h, --help show this help message and exit
--color COLOR Color to convert
--compat {xterm,vt100}
Compatibility mode. Defaults to xterm.
Python Module Usage
===================
```python
>>> import xtermcolor
>>> print(xtermcolor.colorize('Hello World', 0x00ffec))
Hello World
```
|