Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site umcp-cs.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!lll-crg!gymble!umcp-cs!chris From: chris@umcp-cs.UUCP (Chris Torek) Newsgroups: net.unix-wizards Subject: Re: Mysterious transformation of tset(1) output on Suns Message-ID: <1833@umcp-cs.UUCP> Date: Sun, 13-Oct-85 10:36:53 EDT Article-I.D.: umcp-cs.1833 Posted: Sun Oct 13 10:36:53 1985 Date-Received: Tue, 15-Oct-85 05:51:16 EDT References: <483@smeagol.UUCP> Distribution: net Organization: U of Maryland, Computer Science Dept., College Park, MD Lines: 15 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@umcp-cs ARPA: chris@mimsy.umd.edu