9

Are there any C++ libraries similar to Ncurses, but for Windows? It seems there are no ports of Ncurses and I need a really good display system like it.

Any suggestions? Cross-platform is a plus.

cam
  • 8,725
  • 18
  • 57
  • 81

5 Answers5

12

There is very similar library PDCurses. It uses the same calls as ncurses, but works on Win32. The only thing you'd need to port a program would be to recompile.

http://pdcurses.sourceforge.net/

1

It looks like the GNUWin32 project provides a direct port of NCurses.

See here:

http://gnuwin32.sourceforge.net/

http://gnuwin32.sourceforge.net/packages/ncurses.htm

luksan
  • 7,661
  • 3
  • 36
  • 38
  • 1
    The [ncurses](http://gnuwin32.sourceforge.net/packages/ncurses.htm) page appears to be an error. The [packages](http://gnuwin32.sourceforge.net/packages.html) page shows [PDcurses](http://gnuwin32.sourceforge.net/packages/pdcurses.htm). – Thomas Dickey Apr 12 '15 at 14:50
1

Not cross platform, but you could use the Windows API's Console Functions directly.

Billy ONeal
  • 104,103
  • 58
  • 317
  • 552
0

I would use CYGWIN with NCURSES: curses + crossplatforms, as you want.

Other than that, you can try Borland's old CONIO (there is a repository of old Borland Software at Embarcadero), or Microsoft's Win32 API Console.

Pablo Santa Cruz
  • 176,835
  • 32
  • 241
  • 292
  • Does the cygwin solution force the user to install cygwin though? – Billy ONeal Apr 26 '10 at 13:25
  • 1
    @Billy As far as I'm aware, yes, you need the cygwin DLL. The PDCurses solution is a much better bet - I've played with it, and it works well - no cygwin required, –  Apr 26 '10 at 13:33
  • @Bill: you need only the cygwin DLL. – Dan Andreatta Apr 26 '10 at 13:46
  • @Dan Andreatta: Does that mean I can just redistribute the DLL with my application in a self extracting ZIP? Or does that chain me to GPL fun? – Billy ONeal Apr 26 '10 at 16:47
  • @Billy: GPL fun. You can freely link against the dll if you distribute your application with an open source licence, in which case you simply have to distribute the source code of the dll. Otherwise you have to purchase a license from RedHat. – Dan Andreatta Apr 26 '10 at 19:35
  • @Dan Andreatta: Grr. Getting difficult to stick to the BSD license. :P Thanks! – Billy ONeal Apr 27 '10 at 00:15
  • @Billy: If I read it correctly, you can distribute your code with a BSD license together with the DLL, which remain under the "extended GPLv2". – Dan Andreatta Apr 27 '10 at 08:18
0

SetEdit uses a port of Borland's TurboVision. This port is cross platform and can be found here, licensed under GPL.

Cristian Adam
  • 4,749
  • 22
  • 19