Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site phoenix.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!phoenix!brent From: brent@phoenix.UUCP (Brent P. Callaghan) Newsgroups: net.unix,net.unix-wizards Subject: Re: Can something like Script be done in System V? Message-ID: <1208@phoenix.UUCP> Date: Wed, 19-Jun-85 21:04:42 EDT Article-I.D.: phoenix.1208 Posted: Wed Jun 19 21:04:42 1985 Date-Received: Thu, 20-Jun-85 11:53:25 EDT References: <868@enea.UUCP> <11282@brl-tgr.ARPA> Organization: AT&T Information Systems, Lincroft NJ Lines: 26 Xref: watmath net.unix:4840 net.unix-wizards:13576 > Well System V wizards, how do you do a front end program that has total > terminal control even over a raw mode "application" like vi. > Some programs don't like to be piped at, so they have to fooled somehow. Have you tried tee stdin | vi something | tee stdout It captures the I/O despite it being raw - and vi doesn't seem to mind a bit i.e. you can't tell the tees are there! It seems that vi's ioctl calls to get into raw mode affect the reads and writes of tee! The shell checks whether its reading from a tty and omits the PS1 prompts. tee stdin | sh | tee stdout is rather difficult to use. -- Made in New Zealand --> Brent Callaghan AT&T Information Systems, Lincroft, NJ {ihnp4|mtuxo|pegasus}!phoenix!brent (201) 576-3475