Thread: linux equivelent to conio.h

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    58

    linux equivelent to conio.h

    does any one know a linux equivilent to conio.h?

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    Linux is an operating system, not a compiler. So technically, the Linux equivalent to conio.h is conio.h.

    -Prelude
    My best code is written with the delete key.

  3. #3
    Registered User
    Join Date
    Aug 2001
    Posts
    58
    hmmm slackware 8.0 dosnt have conio.h.....
    --== www.NuclearWasteSite.com==--

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >hmmm slackware 8.0 dosnt have conio.h.....
    That's because it's a nonstandard header file, compilers don't have to implement it if they don't want to.

    -Prelude
    My best code is written with the delete key.

  5. #5
    _B-L-U-E_ Betazep's Avatar
    Join Date
    Aug 2001
    Posts
    1,412
    is <conio> standard though... that is the question. (or was it 'to be or not to be')
    Blue

  6. #6
    _B-L-U-E_ Betazep's Avatar
    Join Date
    Aug 2001
    Posts
    1,412
    tis not...
    Blue

  7. #7
    Registered User
    Join Date
    Aug 2001
    Posts
    58
    ok not to be rude but yes i know that Slackware 8.0 is a O/S not a compiler (trust me i'm quite aware of this) i was refering to the program g++ that it comes with wich IS a compiler. Aside from that i wanted to know what an equivelent of it was such as what would work as it or another way of using the command _getch().
    --== www.NuclearWasteSite.com==--

  8. #8
    Unregistered
    Guest
    same question here, Im also using C under the linux operating system here and it does'nt use any conio.h header so I cannot use getch and clrscr which really a pain in the next .

    Are there any alternative on this ?

    Thanks

  9. #9
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    >yes i know that Slackware 8.0 is a O/S not a compiler (trust me i'm quite aware of this) i was refering to the program g++ that it comes with wich IS a compiler

    Perhaps you should have said this in the first place then. Try curses.h for getch(), not sure about clrscr().

  10. #10
    Something Clever ginoitalo's Avatar
    Join Date
    Dec 2001
    Posts
    187
    It's :

    #include <curses.h>

    you may have to compile with -lcurses

    ex

    >g++ MyProg.cpp -lcurses

  11. #11

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Wireless Network Linux & C Testbed
    By james457 in forum Networking/Device Communication
    Replies: 3
    Last Post: 06-11-2009, 11:03 AM
  2. Dabbling with Linux.
    By Hunter2 in forum Tech Board
    Replies: 21
    Last Post: 04-21-2005, 04:17 PM
  3. installing linux for the first time
    By Micko in forum Tech Board
    Replies: 9
    Last Post: 12-06-2004, 05:15 AM
  4. _getc(); equivelent in linux
    By rkjd2 in forum C++ Programming
    Replies: 2
    Last Post: 03-19-2002, 06:47 PM