Delay of four characters using CBREAK mode on RS/6000

Kevin P. Kleinfelter kevin at msa3b.UUCP
Mon Oct 15 07:24:58 AEST 1990


rhl at astro.Princeton.EDU (Robert Lupton (the Good)) writes:


>I have some code that runs on lots of machines and reads keystrokes
>in CBREAK mode, using a BSD-style tty driver. Compiling with 
>	c89 -D_POSIX_SOURCE -Dunix
>I get a delay of 4 key-strokes between when I type a character and when
>my code sees and echoes it.

Is NCHARS=5?  We found that changing the tty configuration via
stty TCSETA, while characters were present in the buffer, caused the tty
driver to insist on having all NCHARS chars in the input buffer, regardless of
the setting of NDELAY.  There is a fix (they created it for us).  It is new,
and involves replacing the driver. (Be sure they give you the fixed fix --
the first fix only changed the problem, and did not fix it!)
-- 
Kevin Kleinfelter @ Dun and Bradstreet Software, Inc (404) 239-2347
{emory,gatech}!nanovx!msa3b!kevin

"Don't hold your finger on the button if the motor ain't goin' roundy-roundy."



More information about the Comp.unix.aix mailing list