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

Add Windows support to the C version of termbox #65

Open
maurisvh opened this issue Oct 19, 2015 · 6 comments
Open

Add Windows support to the C version of termbox #65

maurisvh opened this issue Oct 19, 2015 · 6 comments

Comments

@maurisvh
Copy link

Currently, termbox.c seems to use hard-coded VT100 escape codes like \033[ for cursor movement and text colors. It would be nice to have at least a rudimentary (#ifdef-based) alternative for Windows console support. (The Go version seems to have very fleshed-out cross-platform support; is anything holding back the C version from getting it too, or is it just that nobody's gotten around to it?)

(Great work on this, BTW -- hate to sound like I'm complaining about missing features when this library is actually really good!)

@nsf
Copy link
Owner

nsf commented Oct 19, 2015

Nothing holding it back. Just time. Someone needs to sit down and write it. I'm very busy right now and barely can find any time on my open source projects, sorry.

Also I would like to encourage using Go version instead of C. There are 0 reasons to write things in C when it comes to terminal-based interfaces. But if someone writes an implementation for windows, I don't mind. It won't be me, at least not soon. Even if I have time for my open source projects there are more important ones. :)

@WiSaGaN
Copy link

WiSaGaN commented Feb 5, 2016

@nsf care to elaborate on "There are 0 reasons to write things in C when it comes to terminal-based interfaces."?

@nsf
Copy link
Owner

nsf commented Feb 5, 2016

Use a garbage collected language.

@dleslie
Copy link

dleslie commented Feb 10, 2016

Windows support would be welcome, in the C version.

@imdaveho
Copy link

imdaveho commented Jun 3, 2017

@nsf Just wondering if the Go version of termbox is compatible with the Python wrapper for the C version?

I'm currently in the middle of writing a thin wrapper for termbox-go, compiling using -buildmode=c-shared and writing the C interop for Python with cffi. BUT, if the APIs are identical, am I wasting my time?

(also, the reason for using termbox-go is exactly the OPs question: termbox-go has support for Windows baked in, so then creating a text UI in Python would work the same way cross-platform)

@nsf
Copy link
Owner

nsf commented Jun 3, 2017

I don't think it is compatible.

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

5 participants