-
-
Notifications
You must be signed in to change notification settings - Fork 849
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proper support for Windows #70
Comments
* Use easier way to convert path components * Fix failing tests on Windows
Powershell works fine, cmd.exe does not. I think we should either disable the coloring when the output is windows console or use I'm not sure if it is possible to detect whether the output is going to powershell or cmd, so one option would be just use |
that would be one option. Maybe there is some kind of environment variable that is only set in PowerShell/cmd.exe.
This way, we would actually loose support for 256 colors on Windows/PowerShell, which I would think is the default for people that are actually using the command line on Windows (?) |
True, but I would like to think |
Somehow, I would like to get a feeling on how many people there are that actually do serious work in If there is such a user base, I'd be willing to work on that. Feel free to open a new ticket concerning |
Actually, there seems to be some work on this here: https://docs.rs/clicolors-control/0.1.0/clicolors_control/ |
@sharkdp Will no. 1 be in the next release? I currently get 2 extra path separators after the drive e.g. |
Absolute path handling for Windows was added in v4.0.0.
Path handling on Windows is much more difficult than on Unix systems. The absolute path that is displayed is generated by I know it's not pretty, but does |
Ok, in this case it looks like a bug. It would be great if you could open a new ticket to discuss this. |
No, here (I guess 😄).Thanks! |
There are a few things that need to be updated:
C:\users\...
)If the first two are fixed, we should be able to activate all tests that are currently disabled on Windows:
fd/tests/tests.rs
Lines 42 to 43 in 2403ac3
Concerning point 3:
LS_COLORS
, so we can only fall back to the defaults (seeDefault
implementation ofLsColors
). This should work already.ansi_term
on Linux/OSX - at least until there is progress on this PR. If this turns out to be too complicated, we could also disable colored output by default (on Windows).The text was updated successfully, but these errors were encountered: