Port-amiga archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Programming Question

On Fri, 7 Jun 1996, R T Dhami wrote:

> Hi,
> I've been trying to accomplish this task:
>       get a char (or int) from the keyboard without having to press
>       return after.  Every standard command like fgetc etc. all need
>       to have the return key pressed to continue.
> Is there something I can use to do this with NetBSD-1.1?

Yes, there is: #include <curses.h> 
this provides a "getch()"-function you probably know from SAS/C, but you 
should read the "man curses" page before you use it. Add the following to 
your compiler switches: "-ltermcap -lcurses". It worked for me raelly 

> Rick

Home | Main Index | Thread Index | Old Index