#include <curses.h>
int main(void) {
int KeyPressed;
system("mode 100, 50");
initscr(); // Here we go!
raw();
nonl();
noecho();
keypad(stdscr, TRUE);
curs_set(2);
WINDOW *Wind;
// This works fine.
Wind=newwin(3, 10, 4, 4);
box(Wind, 0, 0);
refresh();
wrefresh(Wind);
// This also works.
KeyPressed = getch();
move(5, 12);
refresh();
wrefresh(Wind);
// This does not appear to move the cursor.
KeyPressed = getch();
wmove(Wind, 1, 1);
refresh();
wrefresh(Wind);
KeyPressed = getch();
endwin();
return 0;
}
Comments