#include #include #include // gcc -I/usr/include/ncursesw/ -D_XOPEN_SOURCE_EXTENDED getstr_test.c -lncursesw int main() { WINDOW *win1, *win2; // int ret; // cchar_t cc1, cc2; // wchar_t wc; setlocale(LC_ALL,""); initscr(); cbreak(); noecho(); halfdelay(100); //display value of constants /* printw("FALSE %d\n", FALSE ); printw("TRUE %d\n", TRUE ); printw("false %d\n", false ); printw("true %d\n", true ); printw("OK %d\n", OK ); printw("ERR %d\n", ERR ); */ //test defined as macro or not // gcc -I/usr/include/ncursesw/ -D_XOPEN_SOURCE_EXTENDED getstr_test.c -lncursesw -E getstr(); //may be macro getnstr(); //macro wgetstr(); //macro wgetnstr(); mvgetstr(); //macro mvgetnstr(); //macro mvwgetstr(); //macro mvwgetnstr(); //macro //end of test refresh(); wrefresh(win1); getch(); endwin(); return(0); }