/ README.md
README.md
1 # ansito 2 3 [](https://github.com/pawamoy/ansito/actions?query=workflow%3Aci) 4 [](https://pawamoy.github.io/ansito/) 5 [](https://pypi.org/project/ansito/) 6 [](https://gitpod.io/#https://github.com/pawamoy/ansito) 7 [](https://app.gitter.im/#/room/#ansito:gitter.im) 8 9 Translate ANSI codes to any other format. 10 11 Currently, only Conky format is supported. 12 13 **:warning: This project is unmaintained. 14 Drop me a message if you would like me to transfer it to you 15 or add you as a collaborator.** 16 17 ## Installation 18 19 With `pip`: 20 21 ```bash 22 pip install ansito 23 ``` 24 25 With [`pipx`](https://github.com/pipxproject/pipx): 26 27 ```bash 28 python3.8 -m pip install --user pipx 29 pipx install ansito 30 ``` 31 32 ## Usage (command-line) 33 34 ``` 35 usage: ansito [-h] FILENAME 36 37 positional arguments: 38 FILENAME File to translate, or - for stdin. 39 40 optional arguments: 41 -h, --help show this help message and exit 42 43 ``` 44 45 Example: 46 47 ```bash 48 command-that-output-colors | ansito - 49 ``` 50 51 Real-word example with `taskwarrior` in a Conky configuration file: 52 53 ```lua 54 ${texecpi 60 flock ~/.task task limit:10 rc.defaultwidth:80 rc._forcecolor:on rc.verbose:affected,blank list | ansito - | sed -r 's/([^ ])#/\1\\#/g' 55 ``` 56 57 :warning: **Conky does not have "background colors" for text, 58 so ansito will not be able to convert the ANSI codes for background colors 59 to Conky colors!**