LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-24-2002, 06:03 PM   #1
f0d
LQ Newbie
 
Registered: Feb 2002
Distribution: Slackware 7.0
Posts: 9

Rep: Reputation: 0
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;
}
 
Old 02-24-2002, 09:09 PM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
What terminal type are you using? What is the value of TERM?

Your program worked fine on my box.
 
Old 04-14-2006, 12:06 PM   #3
aLiSoN3742
LQ Newbie
 
Registered: Apr 2006
Posts: 4

Rep: Reputation: 0
same

My program doesn't produce any output either. How do I know the value for TERM, how do I fix it? Thank you.
 
Old 04-14-2006, 12:08 PM   #4
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
echo $TERM
 
Old 04-14-2006, 12:09 PM   #5
aLiSoN3742
LQ Newbie
 
Registered: Apr 2006
Posts: 4

Rep: Reputation: 0
the value is xterm

Thanks for the quick reply!
 
Old 04-14-2006, 12:11 PM   #6
aLiSoN3742
LQ Newbie
 
Registered: Apr 2006
Posts: 4

Rep: Reputation: 0
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!

Last edited by aLiSoN3742; 04-14-2006 at 12:32 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ncurses and c dave308 Programming 2 04-14-2006 01:06 PM
Can C++ I/O streams (cin, cout) work with ncurses 5.4? Darwish Programming 8 09-29-2005 03:10 PM
ncurses with RH 8 ? marudhu Programming 6 07-23-2003 03:52 PM
ncurses-5.2-28 conflicts with file from package ncurses-5.2-12 tubby Linux - Software 4 06-16-2002 12:00 AM
Ncurses Mohsin Linux - Newbie 1 03-21-2002 02:01 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration