-
-
Notifications
You must be signed in to change notification settings - Fork 829
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
Add windows compatibility #29
Comments
Thank you for trying this. I'll try to implement this as soon as I get access to a Windows system. |
I'd be happy to create a pull request! |
That would be great, thank you. |
Apart from the current compilation problems, colored output does not work on Windows (no support for ANSI sequences). We could consider using termcolor. |
PR #35 concerns windows compatibility. |
Oh, I didn't know that, that's cool! I just quickly tried |
Closed via #35 |
I'm surprised this was closed considering colored output does not work in |
This issue was regarding compatibility; The code simply didn't compile on windows. Having to flag |
I disagree, we have colored output in CMD via the various `color` calls.
Surely if `ripgrep` can do it, `fd` can do it.
…On 18:51, Thu, Jul 20, 2017 Sebastiaan Vermeulen ***@***.***> wrote:
This issue was regarding compatibility; The code simply didn't compile on
windows. Having to flag no-color should be the default behavior imho
since this is a shortcoming of cmd, not Windows. If you want colored
output, try Powershell. It's like bash and Python had a baby in Microsoft
country. (And it's developed by MSFT)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#29 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABzmgxuSiQ4Iv3F9GVITqj2ajlEpOJ_pks5sP4WbgaJpZM4NyNMj>
.
|
Then by all means, start a pull request to add |
I looked into it a bit today, there's a few issues in order to implement it: |
@jmcomets Cool, thanks for looking into this! I also think we should open a new issue for this. |
This code is cross-platform save for the "executable file" check, which is only relevant on unix systems, and is done for the sole purpose of color-coding output lines.
I managed to make your code run on windows by adding conditional compilation operators to
use std::os::unix::fs::PermissionsExt;
and to redefine theis_executable
function on non-Linux systems.The text was updated successfully, but these errors were encountered: