Re: Curses module - got it working?

Guido.van.Rossum@cwi.nl
Thu, 30 Mar 1995 16:34:01 +0200

> I'm trying to compile the curses module, and I'm having problems on my
> Linux box. If I try to use the regular curses library and include files,
> I get several screens of errors.

Yes -- the curses module was meant to be used with the ncurses
library, but it seemed silly to call it "ncurses" when there was never
a previous "curses" for Python.

> If I use ncurses instead, all is fine until the final linking; I then
> get errors that 'wechochar' and 'intrflush' are 'undefined references.'
> (And sure enough, if I check the man pages, I find excellent documentation
> on those two functions, as well as a footnote that says "these haven't
> been implemented yet.")

I suggest a simple solution: comment the references to these two
functions out of the cursesmodule.c file. (I bet the only uses for
them are in wrapper functions.)

--Guido van Rossum, CWI, Amsterdam <mailto:Guido.van.Rossum@cwi.nl>
<http://www.cwi.nl/cwi/people/Guido.van.Rossum.html>