Questions tagged [unicurses]

UniCurses is a wrapper for Python 2.x/3.x that provides a unified set of Curses functions on all platforms (MS Windows, Linux, and Mac OS X) with syntax close to that of the original NCurses. To provide functionality on MS Windows it wraps PDCurses.

UniCurses is a wrapper for Python 2.x/3.x that provides a unified set of Curses functions on all platforms (MS Windows, Linux, and Mac OS X) with syntax close to that of the original NCurses. To provide functionality on MS Windows it wraps PDCurses.

Features

  • Provides a unified set of Curses functions for all platforms, including MS Windows.
  • Wraps Public Domain Curses (PDCurses) using ctypes when used on Microsoft Windows.
  • Compatible with Python 2.x and 3.x series.
  • Uses syntax and function names similar to the original NCurses functions.

Available from PyPi (last update Jan 28, 2012)

7 questions
4
votes
1 answer

UniCurses pdcurses.dll Error

When trying to import the UniCurses package, I receive the error "UniCurses initialization error - pdcurses.dll not found." I have downloaded the pdcurses distributions (specifically pdc34dllw.zip) and extracted the files…
Watercleave
  • 183
  • 9
1
vote
0 answers

Reading user input using UniCurses for Python

How do I properly read user input using unicurses? I am using wgetstr to read in user input, but how would I go about making sure that the input does not flow over to the next line. The input should just stop when the last character reaches the end…
it2901
  • 69
  • 8
1
vote
0 answers

Can I make UniCurses more Pythonic?

I'm a hobbyist programmer teaching myself Python. As the curses module doesn't work on Windows, I've been looking at UniCurses, a cross-platform Curses implementation. I was disappointed to find that UniCurses functions bear little resemblance to…
1
vote
0 answers

Fatal error: can't find pdcurses.dll for linking, make sure PDCurses v3.4+ is in the same folder as UniCurses

I've imported curses in python but then when I tried to run the program from cmd it said ModuleNotFoundError: no module named '_curses'. I searched for Unicurses for my version of Python then installed it, then I did the same with PDcurses and…
J.Edo
  • 11
  • 3
1
vote
1 answer

Where to place PDCurses for use with UniCurses

I want to use UniCurses on Windows. For this, I downloaded various ZIP-archives. I downloaded pdc34dll.zip, pdc34dlls.zip, pdc34dllu.zip, pdc34dllw.zip and pdcurses34.zip. The last was just the source. I tried to place the files within the…
Jordy Deweer
  • 311
  • 1
  • 4
  • 13
0
votes
0 answers

Create a subprocess from a function belonging to a class that stores an object that cannot be pickled

Im trying to create a little 2D game engine using Unicurses. To do so, I have created a Player base class, which handles all the keystrokes and communicates them to the main program via a pipe. To get the keystrokes, however, I use the…
USR
  • 1
  • 2
0
votes
0 answers

When I use unicurses, there comes: NameError: name 'initscr' is not defined

I downloaded and installed unicurses and when I write into python idle "import unicurses", it works without error. Then I write: stdscr = initscr() And then a name error occurs: NameError: name 'initscr' is not defined Everywhere I look in the…