fread and read from a terminal

utzoo!decvax!ucbvax!saks at LL-XN utzoo!decvax!ucbvax!saks at LL-XN
Wed Jul 22 06:32:48 AEST 1981


From: Joft Saks <saks at LL-XN>
Spencer Thomas is quite right.  See the 'TTY' entry in section 4 of the
UNIX manual for a description of how the terminal handles EOT's.
In particular, the manual says that the EOT signifies only the end of a
given transmission (i.e., if the transmission does not end with a '\n').
End-of-file is actually indicated by reception of a zero-length transmission.




More information about the Comp.unix.wizards mailing list