This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author nobody
Recipients
Date 2001-08-10.21:57:44
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: NO 

Ok, I tried a little program in C.


#include <curses.h>

WINDOW *w;

int i,c,x1,x2,x3;
int main()
{
  initscr();cbreak();noecho();
  
  w = newwin(2,10,0,0);
  c = wgetch(w);
  x1 = mvwprintw(w,0,9,"Y"); /* IS OK */
  x2 = mvwprintw(w,1,9,"Y"); /* IS OK, BUT MIGHT REPORT
WRONG */
  x3 = mvwprintw(w,2,9,"Y"); /* THIS SHOULD NOT WORK */
  wrefresh(w);
  c = wgetch(w);
   
  echo();endwin();nocbreak();
  printf("RETURN VALUES: %d,%d,%d\n",x1,x2,x3);
  return 0;
}


When run, this program produces a screen with an Y on each
of the two first lines, just as expected.
It then ends and prints the output:

RETURN VALUES: 0,-1,-1

The first -1 should, as I see it, have been 0. I assume 
the python code sees the -1 and raises the error?

So yes, this would seem to be an error in curses.

/Magnus.
History
Date User Action Args
2007-08-23 13:55:14adminlinkissue441429 messages
2007-08-23 13:55:14admincreate