Public bug reported:
Using the following code I cant move the window with mvwin
============================================================
#include <ncurses.h>
#include <stdlib.h>
void quit();
int main(int argc, char** argv) {
initscr();
atexit(quit);
curs_set(0);
noecho();
WINDOW *win = newwin(0,0,0,0); // <-- Defference
mvwin(win,10,10);
wresize(win,10,10);
refresh();
box(win,0,0);
wrefresh(win);
getch();
return 0;
}
void quit() {
endwin();
}
============================================================
Changing the window start coordinates to 1,1 and it works.
============================================================
#include <ncurses.h>
#include <stdlib.h>
void quit();
int main(int argc, char** argv) {
initscr();
atexit(quit);
curs_set(0);
noecho();
WINDOW *win = newwin(1,1,0,0); // <-- Defference
mvwin(win,10,10);
wresize(win,10,10);
refresh();
box(win,0,0);
wrefresh(win);
getch();
return 0;
}
void quit() {
endwin();
}
** Affects: ncurses (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ncurses in Ubuntu.
https://bugs.launchpad.net/bugs/1783162
Title:
mvwin doesn't work if window is created with zero coordinates.
Status in ncurses package in Ubuntu:
New
Bug description:
Using the following code I cant move the window with mvwin
============================================================
#include <ncurses.h>
#include <stdlib.h>
void quit();
int main(int argc, char** argv) {
initscr();
atexit(quit);
curs_set(0);
noecho();
WINDOW *win = newwin(0,0,0,0); // <-- Defference
mvwin(win,10,10);
wresize(win,10,10);
refresh();
box(win,0,0);
wrefresh(win);
getch();
return 0;
}
void quit() {
endwin();
}
============================================================
Changing the window start coordinates to 1,1 and it works.
============================================================
#include <ncurses.h>
#include <stdlib.h>
void quit();
int main(int argc, char** argv) {
initscr();
atexit(quit);
curs_set(0);
noecho();
WINDOW *win = newwin(1,1,0,0); // <-- Defference
mvwin(win,10,10);
wresize(win,10,10);
refresh();
box(win,0,0);
wrefresh(win);
getch();
return 0;
}
void quit() {
endwin();
}
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ncurses/+bug/1783162/+subscriptions
--
Mailing list: https://launchpad.net/~touch-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help : https://help.launchpad.net/ListHelp