rtulke / rp

rp aka red pencil is a simple multicolor command-line tool to highlight the filtered output text.
GNU General Public License v2.0
10 stars 3 forks source link

Adding Support for Color Libraries #4

Open mathomp4 opened 2 years ago

mathomp4 commented 2 years ago

@rtulke A question: I'm trying to think of ways to maybe make rpen.py more user configurable when it comes to the colors. For example, I use a different yellow than you do, so I have a permanent edit in my install. And maybe others might like a different order of colors?

One thought I had in this direction is maybe using colorama or even the fancy rich_ library to do so.

But, I also know that rpen is pretty lean, so I thought I'd get your thoughts before trying it out. I'd obviously try on a fork, and try to do things like trying to import the libraries, etc. so that at worse, you fall back to ANSI colors.

rtulke commented 2 years ago

Hi try to make your change if it works well I take it with in the code.