Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site elsie.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!qantel!lll-crg!gymble!umcp-cs!seismo!elsie!ado From: ado@elsie.UUCP (Arthur David Olson) Newsgroups: net.bugs.4bsd Subject: 4.?bsd "more" has bum stty call, leaves vt100s in ul mode (with fixes) Message-ID: <5301@elsie.UUCP> Date: Sat, 30-Nov-85 19:26:16 EST Article-I.D.: elsie.5301 Posted: Sat Nov 30 19:26:16 1985 Date-Received: Mon, 2-Dec-85 03:15:39 EST Organization: NIH-LEC, Bethesda, MD Lines: 50 Keywords: bsd more Index: cmd/more.c Fix Description: The "more" command calls "stty" even when output is redirected. It also leaves terminals such as VT100s in "underscore mode" if the last printing character output is underscored. Repeat-By: To reproduce the first bug, present these commands to "csh": stty tostop more /etc/passwd > /dev/null & and note the + Stopped (tty output) message. To reproduce the second bug, hop on a VT100, present these commands to "csh": awk 'BEGIN { printf "a%c_\n", 8 ; exit }' | more date and note that all input and output is being underlined. Fix: As usual, the trade secret status of the code involved precludes a clearer posting. The first conditionally compiled section of code deals with the first bug; the second with the second. These changes are for the 4.1bsd version of the program. . . . reset_tty () { #ifndef OLDVERSION /* Added November 30, 1985 */ if (no_tty) return; #endif /* !OLDVERSION */ #ifndef OLDVERSION /* Added March 8, 1982 */ tputs(ULexit,1,putch); tputs(Sexit,1,putch); #endif /* !OLDVERSION */ . . . -- Bugs is a Warner Brothers trademark. More is some tobacco company's trademark. VT100 is a Digital Equipment Corporation trademark. -- UUCP: ..decvax!seismo!elsie!ado ARPA: elsie!ado@seismo.ARPA DEC, VAX and Elsie are Digital Equipment and Borden trademarks