Comments (6)
The LS_COLORS
key no
sets the color of normal files, so if you set it to something, not_colored_file
will also be colored.
Are you parsing the output of the lscolors
binary? It's probably better to use the library crate itself.
from lscolors.
@tavianator I'll try setting "no"
I'm using the binary from a bash script.
from lscolors.
@tavianator it sems that neither NORMAL nor FILE are handled
Here's an example where I changed both:
ls will show a file not matching a pattern in the right color but lscolors doesn't seem to. In the example below INSTALL is colored but file isn't.
from lscolors.
Right, I mixed up no
(normal, non-file text) and fi
(regular files). But fi
seems to work for me:
Can you paste your whole LS_COLORS
variable?
from lscolors.
@tavianator an update to a newer version fixed it.
Note that fi needs to be set to 40 for lscolors to output color codes, setting it to 0 doesn't output color code 0.
from lscolors.
Right, 0 is treated basically the same as unset for most things
from lscolors.
Related Issues (20)
- Support for `tui-rs`? HOT 1
- Windows support? HOT 19
- [feature request] API to style file paths that don't exist on disk HOT 6
- Feature request: Always add ANSI coloring sequence, HOT 1
- Feature request: option to return a substring of the colored file name HOT 1
- Release a new version for the support of crossterm HOT 1
- Support for bright/light colors HOT 1
- Crossterm conversion using incorrect colors HOT 2
- Generate ls_colors from file_type() call HOT 4
- Tracking issue for incompatibilities with GNU ls HOT 5
- support crossterm 0.24 with it's new underline styles HOT 2
- Support LSCOLORS env variable on macOS HOT 6
- Released a new version? HOT 2
- README doesn't explain how to build the command-line application HOT 3
- option to set "root" path HOT 6
- "-n" input ignore
- color input even if it has spaces at the beginning and end
- Reversed background/foreground for the sticky bit HOT 3
- Option to output colored file name only HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lscolors.