home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / hp / 14688 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  1.3 KB

  1. Path: sparky!uunet!gatech!usenet.ins.cwru.edu!agate!doc.ic.ac.uk!uknet!mucs!lucs!rkl
  2. From: rkl@csc.liv.ac.uk (Richard Lloyd)
  3. Newsgroups: comp.sys.hp
  4. Subject: Stopping tset from prompting for terminal type
  5. Message-ID: <C0J5vr.Mz6@compsci.liverpool.ac.uk>
  6. Date: 8 Jan 93 10:16:39 GMT
  7. References: <fish.726442697@news.gsfc.nasa.gov>
  8. Sender: news@compsci.liverpool.ac.uk (News Eater)
  9. Organization: Computer Science, Liverpool University
  10. Lines: 27
  11. Nntp-Posting-Host: bobr.csc.liv.ac.uk
  12.  
  13. In article <fish.726442697@news.gsfc.nasa.gov>, fish@daacdev1.stx.com writes:
  14.  
  15. > the default .profile for [k]sh users has the following line:
  16. >     eval ` tset -s -Q -m ':?hp' `
  17.  
  18. We use this:
  19.  
  20.         if [ "$TERM" = "" ]
  21.         then
  22.           eval `tset -s -Q -m 'lan:?xterm'`
  23.         fi
  24.  
  25. Replace "xterm" with whatever terminal you want to default to. You may also
  26. need this fallback code afterwards:
  27.  
  28.         if [ "$TERM" = "" -o "$TERM" = "unknown" ]
  29.         then
  30.             TERM=xterm
  31.         fi
  32.  
  33. Hope this helps !
  34.  
  35. Richard K. Lloyd, 
  36. Computer Science Dept.,   JANET     : rkl@uk.ac.liverpool.compsci
  37. Liverpool University,     Internet  : rkl@csc.liv.ac.uk
  38. Merseyside, England,    Q: "What's the world's fastest home micro ?"
  39. Great Britain.          A: "The Archimedes A3000. 4 MIPS for under 800 pounds."
  40.