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

Re: OT:programmin questions



On Sun, 16 Dec 2001, Eric G. Miller wrote:

> On Sun, 16 Dec 2001 18:54:59 -0500, David Bellows <bfootdav@mindspring.com> wrote:
> 
> [snip]
> > not a programmer as you'll quickly notice.  My problem is that I have 
> > to enter a key followed by ENTER.  This is obviously cumbersome when 
> 
> Probably the input is being buffered.  But you need to be able to
> read each charachter immediately.  I believe there's a way to turn
> off input buffering on STDIN via bash, but at the moment I don't
> recall the magic to do so...  I think you might want to setup
> the "read" function to only read one character at a time (by default,
> I think it is line buffered).  Look up how to do those things, and
> I think you'll be on your way...
> 
Hi,

	I think, this is what you were thinking off :

http://groups.google.com/groups?hl=en&threadm=6aff58%24mun%241%40defiant.cistron.nl&rnum=1&prev=/groups%3Fq%3Dgroup:comp.os.linux.development.system%2Bauthor:miquels%2540cistron.nl%26hl%3Den%26as_drrb%3Db%26as_mind%3D25%26as_minm%3D1%26as_miny%3D1998%26as_maxd%3D26%26as_maxm%3D1%26as_maxy%3D1998%26rnum%3D1%26selm%3D6aff58%2524mun%25241%2540defiant.cistron.nl

Regards,
Jor-el



Reply to: