fgimian / painter Goto Github PK
View Code? Open in Web Editor NEWYour own expressive painter who colors text in your terminal.
License: MIT License
Your own expressive painter who colors text in your terminal.
License: MIT License
I was playing with the CLI and noticed some colors by ls
on my system were not stripped.
$ ls -1 --color | cat -v
^[[0m^[[00;38;5;244mLICENSE^[[0m
^[[00;38;5;244m^[[m^[[01;38;5;245mREADME.md^[[0m
^[[00;38;5;244m^[[m^[[00;38;5;33mimages^[[0m
^[[00;38;5;244m^[[m^[[00;38;5;33mpainter^[[0m
^[[00;38;5;244m^[[m^[[01;38;5;245msetup.cfg^[[0m
^[[00;38;5;244msetup.py^[[0m
^[[00;38;5;244mtest.py^[[0m
^[[00;38;5;244m^[[m^[[00;38;5;33mtests^[[0m
$ ls -1 --color | PYTHONPATH=. python3 -m painter.strip_color_cli | cat -v
^[[00;38;5;244mLICENSE
^[[00;38;5;244m^[[01;38;5;245mREADME.md
^[[00;38;5;244mimages
^[[00;38;5;244mpainter
^[[00;38;5;244m^[[01;38;5;245msetup.cfg
^[[00;38;5;244msetup.py
^[[00;38;5;244mtest.py
^[[00;38;5;244mtests
The escape code in question is ones like ^[[00;38;5;244m
, ones with 3 digits. From the look of source code of Painter, it shouldn't be hard to fix/cover this, {1,2}
to {1,3}
should do, but I am not sure if there would be another form of escape code.
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
Do you know why this error while i try to install painter?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.