Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is ncurses available for windows? [closed]

Tags:

c++

c

ncurses

Are there any ncurses libraries in C/C++ for Windows that emulate ncurses in native resizable Win32 windows (not in console mode)?

like image 797
gio Avatar asked Sep 26 '08 07:09

gio


People also ask

Can I use ncurses in windows?

In ncurses, "windows" are a means to divide the screen into logical areas. Once you define a window, you don't need to track its location on the screen; you just draw to your window using a set of ncurses functions.

Is ncurses open source?

Is it Free Software or Open Source? ncurses is free software. It is not “open source” (refer to the license page).

What is the difference between curses and ncurses?

Curses is the name of the original library from SystemV. NCurses is an open source implementation of the library, with the same API. Every implementation will provide their specific header, like ncurses.


2 Answers

There's an ongoing effort for a PDCurses port:

http://www.mail-archive.com/[email protected]/msg00129.html

http://www.projectpluto.com/win32a.htm

like image 98
wbruna Avatar answered Sep 19 '22 19:09

wbruna


Such a thing probably does not exist "as-is". It doesn't really exist on Linux or other UNIX-like operating systems either though.

ncurses is only a library that helps you manage interactions with the underlying terminal environment. But it doesn't provide a terminal emulator itself.

The thing that actually displays stuff on the screen (which in your requirement is listed as "native resizable win32 windows") is usually called a Terminal Emulator. If you don't like the one that comes with Windows (you aren't alone; no person on Earth does) there are a few alternatives. There is Console, which in my experience works sometimes and appears to just wrap an underlying Windows terminal emulator (I don't know for sure, but I'm guessing, since there is a menu option to actually get access to that underlying terminal emulator, and sure enough an old crusty Windows/DOS box appears which mirrors everything in the Console window).

A better option

Another option, which may be more appealing is puttycyg. It hooks in to Putty (which, coming from a Linux background, is pretty close to what I'm used to, and free) but actually accesses an underlying cygwin instead of the Windows command interpreter (CMD.EXE). So you get all the benefits of Putty's awesome terminal emulator, as well as nice ncurses (and many other) libraries provided by cygwin. Add a couple command line arguments to the Shortcut that launches Putty (or the Batch file) and your app can be automatically launched without going through Putty's UI.

like image 31
Adam Batkin Avatar answered Sep 20 '22 19:09

Adam Batkin