Linenoise: Windows support?

Created on 13 Apr 2016  ·  5Comments  ·  Source: antirez/linenoise

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?

Most helpful comment

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

All 5 comments

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

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ozancaglayan picture ozancaglayan  ·  21Comments

krux02 picture krux02  ·  8Comments

JelteF picture JelteF  ·  8Comments

denisvm picture denisvm  ·  9Comments

ghost picture ghost  ·  4Comments