-
Notifications
You must be signed in to change notification settings - Fork 106
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
[question] windows support? #17
Comments
@hh9527 I haven't given it a shot! 😄 I've tried to leverage the Rust stdlib in a platform-agnostic way whenever possible, but I don't use Windows myself, so it hasn't been a priority to date. |
I haven't read the code, but I found
in Cargo.toml, these two crates does not support windows for now. |
I'd be interested in using this on Windows, too! |
I'm certainly not opposed to supporting Windows, but I haven't got a Windows machine handy to help make that happen. Given that the two terminal libraries don't support it, though, there's probably a fair amount of work to support it. I think WSL support would be a good start, and I can't imagine why that wouldn't work out of the box. We'd be limiting ourselves to Windows 10+ at this point, but I think that's okay for the immediate future. Happy to help coach someone through adding support for that, if it's desired! |
I tried compiling on mingw and it looks like rustbox and termion are the only crates that are giving trouble. I don't know anything about those two, but that would likely be where to focus attention for non-WSL Windows support. I don't have it available at the moment to try, but I'd think that WSL should work as is. |
I just tried with the new release and got this
It's
As I use linux for main driver it's not a blocker for me. I Just wanted to try scrubbing through a large file using new syntax highlighting. |
Is anyone working on this, by chance? Was thinking of digging in a bit and seeing what needs to happen |
@jonathandturner nope; that'd be welcome! 🙂 |
@jonathandturner I think it's |
We can remove |
https://github.com/nsf/termbox-go seems to have everything needed, but it might be just a bit of a pain to switch termbox (C) to use that...
Not sure calling go (which is compatible with C) from rust is such a good idea either. Time for termbox-rust? 😹 😂 (joking, but sort of not) |
@Lewiscowles1986 one of the stated project goals for Rustbox, the wrapper library we're using for termbox, is to rewrite the underlying C library in Rust, so you're not far off! I'd honestly investigate that before anything else (and add TrueColor support while I'm at it). |
Hey, kinda reviving this but, from what I see, the only thing blocking the windows port is So, right now I'm trying to implement said trait using I'd appreciate it if anyone could help me with that! |
I've managed to make it compile and run on windows just by replacing I'd appreciate any leads on how to best replace termion! Anyways, here's the fork if anyone is interested: https://github.com/matheuslessarodrigues/amp |
@matheuslessarodrigues - I wrote about this some in http://www.jonathanturner.org/2019/04/porting-the-pikachu.html I had to do a few things. One was to buffer as much as possible before the flush. You might also want to try it inside of the new Windows Terminal if you haven't yet. I've noticed it's got significantly better performance than the old |
The current For rnow, I've only tested on the new Windows Terminal. Thanks for the tip! |
The |
will this project support windows?
The text was updated successfully, but these errors were encountered: