home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.ultrix
- Path: sparky!uunet!decwrl!deccrl!news.crl.dec.com!pa.dec.com!decprl!decprl!boyd
- From: boyd@prl.dec.com (Boyd Roberts)
- Subject: Re: pg and echo don't work any more on Ultrix 4.2A, why ?
- Message-ID: <1992Aug21.115048.19659@prl.dec.com>
- Sender: news@prl.dec.com (USENET News System)
- Nntp-Posting-Host: prl313.prl.dec.com
- Organization: Digital Equipment Corporation - Paris Research Laboratory
- References: <2314@inasys.UUCP>
- Distribution: comp
- Date: Fri, 21 Aug 1992 11:50:48 GMT
- Lines: 22
-
- In article <2314@inasys.UUCP>, behe@inasys.UUCP (Bernd Hentig) writes:
- >
- > echo '\033[0m' on any Unix flavour I know (even AIX !!!) sends the proper
- > escape sequence to the terminal (this time it resets the video attributes).
- >
-
- Perhaps `any Unix flavour I know' == varients of System V.
-
- The only _portable_ use of echo is when it's invoked with
- no options and arguments that contain no \ characters.
-
- Anyway betting that <esc>[0m will do the right thing every
- time is one sure way to get burned. If you must, use tput(1)
- but even that opens up portability problems:
-
- ; whatis tput
- tput not found
-
-
- Boyd Roberts boyd@prl.dec.com
-
- ``When the going gets wierd, the weird turn pro...''
-