Bug in standard cursesmodule?

Gerrit Holl gerrit.holl at pobox.com
Mon Nov 1 21:47:46 CET 1999


Hello,

A does not work,
B does work!

--- *** A *** ---
#!/usr/bin/python
import curses

stdscr = curses.initscr()
stdscr.addch(24, 79, ord('X'))
stdscr.refresh()
curses.endwin()

--- *** A *** ---
--- *** B *** ---
#include <ncurses.h>

main () {
        initscr();
        mvaddch(24, 79, 'X');
        refresh();
        endwin(); }
--- *** B *** ---

I think it's a bug... Am I right?

When I run A, it says:
error: [mv]waddstr() returned ERR

regards,
Gerrit.




More information about the Python-list mailing list