Mysterious transformation of tset(1) output on Suns

Chris Torek chris at umcp-cs.UUCP
Mon Oct 14 00:36:53 AEST 1985


The answer no doubt lies in the fact that the window size is obtained
via an ioctl:  `TIOCGSIZE'.  Presumably Sun's tset is performing
this on its standard output, and inside backquotes this is tied to
a pipe rather than the terminal.  If you have source, you may be
able to fix tset by making the ioctl happen on 0 or 2 (stdin or
stderr).

Sun changed their termcap routines to know about the `li#' and
`co#' entries, and to return the appropriate values based on the
window size, if available.  Thus programs like `more' work without
modification.
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 4251)
UUCP:	seismo!umcp-cs!chris
CSNet:	chris at umcp-cs		ARPA:	chris at mimsy.umd.edu



More information about the Comp.unix.wizards mailing list