View previous topic :: View next topic |
Author |
Message |
wonderboy n00b
Joined: 20 Jun 2003 Posts: 71
|
Posted: Mon Jun 30, 2003 11:56 pm Post subject: Getch, whats the equivalent |
|
|
I just started programming on linux, what is the equivalent for getch(), getche() and anything else that was in conio.h for DOS programming |
|
Back to top |
|
|
Brandy Bodhisattva
Joined: 08 Jun 2003 Posts: 820 Location: New Zealand
|
Posted: Tue Jul 01, 2003 1:50 am Post subject: |
|
|
Hi wonderboy.
conio.h is not a part of the ANSI standard and so does not appear on Linux.
ANSI I/O functions can be found in the stdio.h library: fgetc, fgets, getc, getchar, gets, ungetc are the functions to handle the input of characters and strings. There is a thread here that gives a nice example of using getchar.
Interestingly, getch() does exist in the ncurses.h library.
Ciao, Brandy _________________ Faber est suae quisque fortunae. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|