Skip to content
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

Windows support #7

Open
gchp opened this issue Dec 12, 2014 · 12 comments
Open

Windows support #7

gchp opened this issue Dec 12, 2014 · 12 comments

Comments

@gchp
Copy link
Owner

gchp commented Dec 12, 2014

So far I've only tested this on Linux and Mac. Need to make sure it works correctly on Windows also. Right now I believe this doesn't even build on Windows. See gchp/iota#25 for a starting place.

@ghost
Copy link

ghost commented Jun 21, 2015

Is the goal here to get termbox for C to work on windows, or to jump straight into the pure-Rust version?

In either case this should need the Windows Console API?

@ghost
Copy link

ghost commented Jun 23, 2015

FYI I am working on a pure-rust implementation for windows using the kernel32-sys bindings for win console api. LMK if you want me to contribute the code here. This is my first Rust project

@gchp
Copy link
Owner Author

gchp commented Jun 23, 2015

@jayrandez the goal would be to get the Rust version working on Windows. My hope for Rustbox in the future would be to drop the C bindings and be entirely standalone. Windows is a bit of a gray area to me, though, so I'd welcome your contributions!

@ghost
Copy link

ghost commented Jun 27, 2015

Working on windows version in a fork of rustbox, under the branch "win-dev"

I submitted a pull request which reorganizes the files a bit so that the windows implementation doesn't interfere with the existing linux. No changes to API or build.

Will submit another pull request once windows version implements the full API.

@retep998
Copy link

I have started a middle level wrapper around the Windows console API in wio which should make implementing support here much nicer as you won't have to muck about with raw pointers.

An example of using that wrapper: https://github.com/retep998/wio-rs/blob/master/examples/console.rs

@ghost
Copy link

ghost commented Jan 23, 2016

IIRC I had most of the windows support done in a separate fork. I abandoned it though, no time these days.

@bb010g
Copy link

bb010g commented May 15, 2016

Is there any chance of integrating @jayrandez's work soon?

@rahilwazir
Copy link

@gchp Whats the update for windows build?

@aschuhardt
Copy link

Would it be possible to get an update on if/when this might be in process?

@Revertron
Copy link

Okay, after 4 years I'm interested in working windows version too...

@gchp
Copy link
Owner Author

gchp commented Jul 5, 2018

The issue with windows support is that the underlying C library doesn't have windows support.

In order to implement windows support here, the rustbox needs to be re-written to remove the dependency on the C library, similar to the Go implementation (https://github.com/nsf/termbox-go).

I'd be happy to work with someone on this, however I do not have time currently to do all of this development myself.

@aberg001
Copy link

I'm not sure if this belongs here or in a new issue, but if I build the example code from the README using the Linux Subsystem for Windows (Ubuntu) it compiles and runs but does not quit when I press 'q'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants