ReadKey like Function in C

Peter da Silva peter at ficc.uu.net
Mon Aug 21 12:25:31 AEST 1989


In article <13656 at bloom-beacon.MIT.EDU>, scs at adam.pika.mit.edu (Steve Summit) writes:
> It turns out that ed does reads of 1 from standard
> input.  I believe this dates to a very old version of Unix when
> it was important to do so to avoid reading past a !, the
> characters following which had to be left in some input buffer
> for the shell to read during a shell escape.

Ah yes. If anyone ever wondered about the point of the '-t' option of sh,
that's what it was for...
-- 
Peter da Silva, *NIX support guy @ Ferranti International Controls Corporation.
Biz: peter at ficc.uu.net, +1 713 274 5180. Fun: peter at sugar.hackercorp.com. `-_-'
"Optimization is not some mystical state of grace, it is an intricate act   U
   of human labor which carries real costs and real risks." -- Tom Neff



More information about the Comp.lang.c mailing list