Install Ncurses Windows 7

Jul 17, 2012  Windows and ncurses. Is there anyway to get ncurses to work on windows or a similar component that at least can.

Modify the install-rule for ncurses-examples to put the data files in the data directory, e.g. Updated using tack and SFU with Windows 7 Ultimate. Curses running. (Verified on 64-bit Windows 7 and Windows 8.) @ArtOfWarfare points out that you can install this via Pip with this commend.

Active2 years, 4 months ago

I was trying to configure the kernel and I got the following error. Can somebody please tell me what I should do?

Zanna
53.2k14 gold badges150 silver badges250 bronze badges
user141332user141332

3 Answers

Open up your terminal and install libncurses-dev by using this command:

David Foerster

Install Ncurses Windows 7

29.2k13 gold badges68 silver badges115 bronze badges
shahidshahid
Parto
9,90519 gold badges70 silver badges107 bronze badges
MayurKubavatMayurKubavat

Tested on Ubuntu 17.04

You should install libncurses5-devand libncursesw5-dev:

References: https://www.cyberciti.biz/faq/linux-install-ncurses-library-headers-on-debian-ubuntu-centos-fedora/

Mateusz PiotrowskiMateusz Piotrowski
3671 gold badge5 silver badges19 bronze badges

protected by CommunityOct 8 '14 at 12:04

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged dependenciesncurses or ask your own question.

Active2 years, 3 months ago

Is there any alternative of the curses module for python to use in windows? I looked up in the python documentation, but there its mentioned that its for using in unix. I am not much familiar with these, so is there some way to use curses module in windows or is there some similar module specially for windows?[I am using Python 3.3]

ChandanChandan
3561 gold badge6 silver badges11 bronze badges

closed as off-topic by Mureinik, robert_x44, greg-449, Mark Rotteveel, EdChumJun 5 '17 at 7:51

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • 'Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.' – Mureinik, robert_x44, greg-449, Mark Rotteveel, EdChum
If this question can be reworded to fit the rules in the help center, please edit the question.

7 Answers

Then you're out of luck i'm afraid.There's no real cross-platform version or port of curses/ncurses, there is a 'dialogue' port which works, but it's limited in capabilities.

Your best bet is to run CygWin or MinGW32, both are, in 'loose terms', a Linux system+terminal emulator which has much of the binaries you need. They can run native Linux/Unix binaries inside the terminal and access your 'host' system files at any time, so it's like patching Windows with a kick-ass terminal with all your goodies from the Linux world.You'll still need some basic knowledge of Linux and how the commands etc work, but you'll figure it out.

Install Ncurses Windows 7

Here's a Pyglet GUI example:

Here's the output of that code:

Ubuntu Ncurses Devel

ashes999
6,60911 gold badges58 silver badges108 bronze badges
TorxedTorxed
14.6k10 gold badges60 silver badges98 bronze badges

I'm happy to report that there's now a Windows build of Curses available as an extension for Python on Windows, from here. (I didn't write it, and I don't know who maintains it.)

You can run the installer, and import curses to get curses running. (Verified on 64-bit Windows 7 and Windows 8.)

@ArtOfWarfare points out that you can install this via Pip with this commend:

ashes999ashes999
6,60911 gold badges58 silver badges108 bronze badges

The original question was whether there is an alternative to curses on Windows.

One answer is to use the Win32 console API. You can program this directly in Python using the excellent pywin32 package if you're already familiar with the console API.

However, I found this too low level for my recent project. I was also less than keen on forcing my users to build/install PDcurses, and besides, I also find curses too low level for a modern OO language like Python too.

I have therefore put together a high level cross-platform API to do all the things most people want from their terminal/console. The asciimatics package will provide most of your input and output needs. If you're on Linux this is a more human way to program curses. If you're on Windows, the same class works as is with no external binary dependencies. See below for an example screenshot:

There are many other effects and widgets available which you can find in the gallery, but if there's an extra feature you need, let me know and I'll see what I can do.

Peter BrittainPeter Brittain
11.6k3 gold badges27 silver badges47 bronze badges

This is not a new solution, just an edit to a previous one.

In case the pip command is giving a 404 error you can try to download the packet from http://www.lfd.uci.edu/~gohlke/pythonlibs/#curses and then write something like

ayaio
61.2k20 gold badges138 silver badges202 bronze badges
LossanLossan
Install Ncurses Windows 7

Here's how to install what ashes999 linked to in their answer via pip:

This should probably be added to PyPI to make installation with pip even easier (so it could be installed by name rather than URL.)

Community
ArtOfWarfareArtOfWarfare
13.4k9 gold badges93 silver badges145 bronze badges

You may try this one. I once did the Win64-port for this (merged in there). You however need to write your Python code a bit different. This one will redirect all curses calls to the native Python version on UNIX, but call PDCURSES.DLL on Windows (download the DLL separately). It supports unicode as far as I remember:

FloFlo

Ncurses Windows Port

The official doc proposes the following (here at the bottom of the paragraph):

The Windows version of Python doesn’t include the curses module. A ported version called UniCurses is available. You could also try the Console module written by Fredrik Lundh, which doesn’t use the same API as curses but provides cursor-addressable text output and full support for mouse and keyboard input.

JeromeJJeromeJ
4,0001 gold badge28 silver badges48 bronze badges

Ncurses Windows

Not the answer you're looking for? Browse other questions tagged pythoncurses or ask your own question.