Welcome to MacForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

non-line-buffered key input in C?

 
   Macintosh computer (Home) -> Programmer Help RSS
Next:  Making a Connection  
Author Message
Eric Pellegrin

External


Since: May 24, 2005
Posts: 1



(Msg. 1) Posted: Tue May 24, 2005 2:55 am
Post subject: non-line-buffered key input in C?
Archived from groups: comp>sys>mac>programmer>help (more info?)

I'm learning C from a book that uses the getche() function from the
<conio.h> library to get instant keyboard character input from the user.
The preprocessor/compiler (gcc 3.3 on Panther) doesn't recognize the
function nor the library. The getchar() function only works line-buffered.

How can I get a program to accept character input without waiting for
the user to press Return?

Any help would be much appreciated.

Eric

 >> Stay informed about: non-line-buffered key input in C? 
Back to top
Login to vote
Display posts from previous:   
   Macintosh computer (Home) -> Programmer Help All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]