Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

use conio.h

mr_jackmr_jack Member Posts: 11
Hello everybody!

I have written a simple program (in C, compiled with cc.exe -> win...) that uses _gotoxy() and _textcolor() functions and now i am trying to compile it in Linux with gcc but i haven't found conio.h library in the "include" directory...
exist similar functions/libraries or an alternative method??


Thank you very much!


Comments

  • XfactorXfactor Member Posts: 343
    : Hello everybody!
    :
    : I have written a simple program (in C, compiled with cc.exe -> win...) that uses _gotoxy() and _textcolor() functions and now i am trying to compile it in Linux with gcc but i haven't found conio.h library in the "include" directory...
    : exist similar functions/libraries or an alternative method??
    :
    :
    : Thank you very much!

    conio.h isn't ANSI standard so it isn't available on Linux. Please read http://www.bloodshed.net/dev/faq.html for more information.

    X
  • mr_jackmr_jack Member Posts: 11

    : :
    : :
    : : Thank you very much!
    :
    : conio.h isn't ANSI standard so it isn't available on Linux. Please read http://www.bloodshed.net/dev/faq.html for more information.
    :
    : X
    :

    Thank you for your reply, but exist similar functions/libraries or an alternative method?? I need a function to riposizionare the cursor like _gotoxy(). There is?

    Thank you!
  • IDKIDK Member Posts: 1,784
    :
    : : :
    : : :
    : : : Thank you very much!
    : :
    : : conio.h isn't ANSI standard so it isn't available on Linux. Please read http://www.bloodshed.net/dev/faq.html for more information.
    : :
    : : X
    : :
    :
    : Thank you for your reply, but exist similar functions/libraries or an alternative method?? I need a function to riposizionare the cursor like _gotoxy(). There is?
    :
    : Thank you!
    :

    The library you are looking for is called ncurses
  • nugentnugent Member Posts: 87
    or you can check out either

    libconio
    http://sourceforge.net/projects/libconio

    or

    Linux c++ implementation of conio.h
    http://sourceforge.net/projects/linux-conioh

    ------
    nugent



Sign In or Register to comment.