LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   ncurses, doesn't work. (https://www.linuxquestions.org/questions/programming-9/ncurses-doesnt-work-15016/)

f0d 02-24-2002 06:03 PM

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;
}

crabboy 02-24-2002 09:09 PM

What terminal type are you using? What is the value of TERM?

Your program worked fine on my box.

aLiSoN3742 04-14-2006 12:06 PM

same
 
My program doesn't produce any output either. How do I know the value for TERM, how do I fix it? Thank you.

crabboy 04-14-2006 12:08 PM

echo $TERM

aLiSoN3742 04-14-2006 12:09 PM

the value is xterm

Thanks for the quick reply!

aLiSoN3742 04-14-2006 12:11 PM

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.