linenoise icon indicating copy to clipboard operation
linenoise copied to clipboard

Windows support?

Open fatcerberus opened this issue 9 years ago • 5 comments

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?

fatcerberus avatar Apr 13 '16 14:04 fatcerberus

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

Asmod4n avatar Jul 14 '16 20:07 Asmod4n

@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.

ghost avatar Dec 24 '16 23:12 ghost

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

Sonophoto avatar Dec 24 '16 23:12 Sonophoto

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

fatcerberus avatar Dec 24 '16 23:12 fatcerberus

Here is another workaround:

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

ghost avatar Oct 29 '19 03:10 ghost