Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!dali.cs.montana.edu!masscomp!peora!tarpit!bilver!jwt!john From: john@jwt.UUCP (John Temples) Newsgroups: comp.unix.programmer Subject: Re: How do you read the arrow keys? Message-ID: <1991Jan3.191845.4767@jwt.UUCP> Date: 3 Jan 91 19:18:45 GMT References: <1990Dec28.195518.26577@ivy.uucp> <4927:Dec2920:17:4790@kramden.acf.nyu.edu> <1991Jan1.035656.27394@NCoast.ORG> Organization: Private System -- Orlando, FL Lines: 15 In article <1991Jan1.035656.27394@NCoast.ORG> allbery@ncoast.ORG (Brandon S. Allbery KB8JRR) writes: >Termio(s) doesn't really have a "raw" mode; it has a "packet" mode. The most >common use is with a packet size of 1 and a timeout of 1 (which is treated as >"no timeout"). Did you mean "timeout of 0" here? Timeout of 1 activates a .1 second timeout on systems I've used -- although VTIME seems to have no effect when VMIN == 1. My playing with termio shows that VTIME only takes effect between characters of multi-character reads. So how does curses halfdelay() mode work? This lets a single-character read time out in as little as .1 second. Does the fact that halfdelay() seems to be broken on many systems imply that there's something more to it than just a termio call? -- John W. Temples -- john@jwt.UUCP (uunet!jwt!john)