New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
curses, can't write to loverright corner #34757
Comments
Whenever I try to write something to a window that w.addch(1,9,ord("x")) -> Same behaviour on all versions I tried. ncurses-5.2 if that is of importance. |
Logged In: YES I believe this is a curses/ncurses limitation and not a Making the window scrollable with w.scrollok(1) allows |
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 RETURN VALUES: 0,-1,-1 The first -1 should, as I see it, have been 0. I assume So yes, this would seem to be an error in curses. /Magnus. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: