I encountered a problem while I read about using "windows" with ncurses library. When I tried to create a simple program using windows, it compiled well without any warnings, but window's borders don't show up in console. In some point I did something that made them flash (right now I don't have any idea about what I did), but after flashing once, they went away right away. I've tried to refresh it. Example programs in this tutorial don't work.
If someone wants, here's a simple example program.
My OS is Gentoo Linux 2007.0. I'm using bash-3.1 and I've tried in ash-1.6. Compiler is gcc 4.1.1 and linker GNU ld-2.17. I have latest version of ncurses library. If someone needs more information, I can tell it.Code:#include <ncurses.h> int main(void) { WINDOW *wp; initscr(); wp = newwin(10, 10, 10, 10); box(wp, 0, 0); wprintw(wp, "foo"); wrefresh(wp); endwin(); return 0; }



LinkBack URL
About LinkBacks


