Thread: <conio.h>

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

    <conio.h>

    i am using C from Linux 7.1(full installation),but i cannot import #<conio.h>. should this be available , or if not, from where to get.

  2. #2
    Registered User jasrajva's Avatar
    Join Date
    Oct 2001
    Posts
    99
    no you cant use conio.h on linux

    you will need to use ncurses

    also if you want to really use conio.h
    try using wine and run your dos based compiler on it
    and then run the dos exe's thru wine as well
    jv

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    7

    <conio>.h

    thanks for your hint,but i know neither ncurses nor wine .
    But does this mean, that it isn't easy to get this , because i dont need it really.
    Happy Chrismas to India,especially to GOA,my favorite holiday destination .

  4. #4
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,227
    he's saying instead of putting

    #include <conio.h>

    use

    #include <ncurses.h>


    get it?


    and Wine is a windows emulator, so if you really need conio.h you can get wine, get a DOS-based compiler (IE: djgpp) and compile and run the program under wine.

  5. #5
    Something Clever ginoitalo's Avatar
    Join Date
    Dec 2001
    Posts
    187
    #include<curses.h>
    is The UNIX version of DOS's
    #include<conio.h>


    ...Watch out though, The function names aren't the same although both libs do about the same stuff (Direct Terminal IO)

    For Example :
    move() = curses.h
    gotoxy() = conio.h


    ....That Should Help Some....

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Why does <conio.h> not work on my Mac? Non ANSI?
    By tvsinesperanto in forum C Programming
    Replies: 8
    Last Post: 03-17-2006, 07:04 PM
  2. Arrrrrrrrrggggghhhhhhhh
    By DeepFyre in forum C++ Programming
    Replies: 8
    Last Post: 09-15-2004, 05:57 PM
  3. gotoxy question
    By Draco in forum C Programming
    Replies: 5
    Last Post: 04-25-2002, 01:28 PM
  4. <conio.h> in Borland (or VIsual) C++ compilers?
    By William in forum C Programming
    Replies: 1
    Last Post: 04-07-2002, 03:27 PM