home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / ultrix / 6389 < prev    next >
Encoding:
Text File  |  1992-08-21  |  1.2 KB  |  36 lines

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