Thread: I really need to get this working =(

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    227

    I really need to get this working =(

    When i was on rh 7.2 this peace of code worked...

    Code:
    #include <stdio.h>
    #include <ncurses.h>
    
    int main()
    {
    
    initscr();
    start_color();
    noecho();
    cbreak();
    
    
          init_pair(2, COLOR_RED, COLOR_RED);
          attron(COLOR_PAIR(2));
          wprintf(5,"\033[34;41mThis is blue text on a red background.\033[0m\n");
          attroff(COLOR_PAIR(2));
    
    
     refresh();
     endwin();
     return 0;
    
     }


    But ever since i have upgraded to rh 7.3.. i cant get nothing to work on ncurses... does anyone have the sampe problem?...
    When i type in "echo $TERM" i get xterm so it should work...but i dont know why its not working

  2. #2
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    Mmm, 7.2 to 7.3 and now errors.
    Did you somehow write over ncurses.h?
    Does your compiler know where to find it?
    The world is waiting. I must leave you now.

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    227
    Im sorry i should of just express my self better.... i mean that when i run that code.. nothing showz.. but when i had it for rh7.2 it worked.. i didnt change anything

  4. #4
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    Hmmm, well, I'm not familar with the enviroment, and you are using functions, and headers that I'm not expierenced with, so I'm going to step out of this one.

    (I bet Salem will help ya out)
    The world is waiting. I must leave you now.

  5. #5
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Looks like a cross posting problem to me

    ... and did you do what I told you to do? Did it work?

    All answers on this one, please.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Function not working
    By sloopy in forum C Programming
    Replies: 31
    Last Post: 11-12-2005, 08:08 PM
  2. Program Not working Right
    By raven420smoke in forum C++ Programming
    Replies: 2
    Last Post: 09-16-2005, 03:21 AM
  3. Trying to eject D drive using code, but not working... :(
    By snowfrog in forum C++ Programming
    Replies: 3
    Last Post: 05-07-2005, 07:47 PM
  4. x on upper right corner not working
    By caduardo21 in forum Windows Programming
    Replies: 1
    Last Post: 02-20-2005, 08:35 PM
  5. cygwin -> unix , my code not working properly ;(
    By CyC|OpS in forum C Programming
    Replies: 4
    Last Post: 05-18-2002, 04:08 AM