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? #113

Open
fatcerberus opened this issue Apr 13, 2016 · 5 comments
Open

Windows support? #113

fatcerberus opened this issue Apr 13, 2016 · 5 comments

Comments

@fatcerberus
Copy link

Linenoise claims it supports ANSI.SYS terminals, which suggests Windows, however it appears to be impossible to compile it on Windows... or at least MSVC. It uses POSIX headers like termios.h, unistd.h, etc. which don't exist in that environment.

How feasible would it be to add MSVC support?

@Asmod4n
Copy link

Asmod4n commented Jul 14, 2016

Take a look at https://github.com/MSOpenTech/redis/blob/3.0/deps/linenoise/linenoise.c

@ghost
Copy link

ghost commented Dec 24, 2016

@Asmod4n unfortunately, that file includes stuff that depends on Redis code.

We're unable to use linenoise until Windows is supported... hopefully that redis code will be ported here.

EDIT: Nevermind, found https://github.com/arangodb/linenoise-ng which supports Windows.

@Sonophoto
Copy link

You might also like @yhirose 's version of linenoise: https://github.com/yhirose/cpp-linenoise

@fatcerberus
Copy link
Author

@Sonophoto unfortunately that one's a no-go for me--I need it to be C.

@ghost
Copy link

ghost commented Oct 29, 2019

Here is another workaround:

https://github.com/msteveb/jimtcl/blob/master/linenoise.c

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

3 participants