Problem with Curses

Klaus-Juergen Wolf kjwolf at online.de
Wed Jun 9 21:54:33 CEST 1999


(Python 1.5.2 on FreeBSD 3.2-RELEASE (i386))

I found that (after having compiled Python with cursesmodule.c -
testall.py succeeds) the following program gives a segmentation fault:

-*-
import curses

mainscr=curses.initscr()
testwin=mainscr.subwin(2,2,2,2)
testwin.erase()
del testwin
curses.endwin()
-*-

I don't understand this - the C equivalent doesn't show any problems.
(You can drop "del testwin", it has no effect anyway.)

In no way, Python should end up in a segmentation fault - in this case,
it appears that the first screen-writing call to libtermcap causes the
problem.

Can anyone help me?

thanx & cu
k.j.




More information about the Python-list mailing list