Csh and stty

Chris Burgess burgess at dalcs.UUCP
Thu Aug 9 09:14:40 AEST 1984


The reason why stty appears confused is because stty does ioctl's
on file descriptor 1 which is standard output for your terminal.
If you try to pipe the output through more it does the ioctl's on
file descriptor 1 again, but csh redefines it to the pipe going
into more. The result being that stty is trying to find out the
terminal characteristics of the pipe rather than the terminal.
This feature is useful when you want to get or set the attributes
of another device e.g. "stty everything > /dev/ttyd0" will give
you the characteristics of ttyd0 rather than sending yours as
output to ttyd0.



More information about the Net.bugs mailing list