-
Notifications
You must be signed in to change notification settings - Fork 249
Have colors in "ls", depending on file status #87
Conversation
(curl, for example). Minimum fix to display both.
and $HOME as arguments.
Why are there so many commits in this PR? |
The colors are a bit hard to read. How does ‘ls’ determine which colors to show? |
I’ll take a look at the color handling in ANSITextState.swift Perhaps those colors need to be adjusted... |
I think I should also check where the "bold" escape sequence is placed. |
I want to start building some test cases for these kind of things. Could you send me a sample color output string, with escape characters? |
Here is the output for the same directory, before parsing:
Where Raw version: |
This PR only changes code in ios_system, and was opened before ios_system was included as a git submodule. I suppose this PR can be closed now? Assuming these changes are available on the master branch of the ios_system repo. |
Yes, it can be closed. |
Builiding on release #71 by @IMcD23 , this PR activates "color mode" for ls: directories are in blue, executable files in red, etc. Colors can be configured by setting the environment variable LSCOLORS. "color mode" can be deactivated by unsetting the variable CLICOLOR.
Color mode is automatically deactivated when the output of
ls
is sent to another command (e.g.ls | grep
)