Hello, i have a problem with resize window/terminal in curses.h library.
i found this: http://invisible-island.net/ncurses/man/wresize.3x.html
... but i dont know how can i resize console window to smaller one.
...and this code do not work :(m can anybody help me?
i am using dev-c++[4992](pdcurses package v3.2), windows XP SP3.
There is my code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
int main()
{
WINDOW win;
initscr(); /* Start curses mode */
//resizeterm(30,30);
wresize(&win, 25, 80);
mvprintw(0, 0, "write to position 0.0");
refresh(); /* Print it on to the real screen */
getch(); /* Wait for user input */
endwin(); /* End curses mode */
return 0;
}
int main()
{
WINDOW *win; // pointer to WINDOW
win = initscr(); // get the WINDOW returned by initscr()
wresize(win, 25, 80); // resize it
mvprintw(0, 0, "write to position 0.0");
refresh();
getch();
endwin();
return 0;
}