ncurses, doesn't work.
even a little program like below, produces no output. just pauses for a second, then returns to the shell..
any ideas why? /* File Path: basics/hello_world.c */ #include <ncurses.h> int main() { initscr();/* Start curses mode */ printw("Hello World !!!");/* Print Hello World */ refresh();/* Print it on to the real screen */ endwin();/* End curses mode */ return 0; } |
What terminal type are you using? What is the value of TERM?
Your program worked fine on my box. |
same
My program doesn't produce any output either. How do I know the value for TERM, how do I fix it? Thank you.
|
echo $TERM
|
the value is xterm
Thanks for the quick reply! |
I am compiling with -lcurses as well. I can't figure out why I'm not getting output! This has put an abrupt stop to doing my homework since I can't even really start without producing any output. Please help! Thanks!
|
All times are GMT -5. The time now is 10:33 AM. |