home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!usenet.ins.cwru.edu!agate!doc.ic.ac.uk!uknet!mucs!lucs!rkl
- From: rkl@csc.liv.ac.uk (Richard Lloyd)
- Newsgroups: comp.sys.hp
- Subject: Stopping tset from prompting for terminal type
- Message-ID: <C0J5vr.Mz6@compsci.liverpool.ac.uk>
- Date: 8 Jan 93 10:16:39 GMT
- References: <fish.726442697@news.gsfc.nasa.gov>
- Sender: news@compsci.liverpool.ac.uk (News Eater)
- Organization: Computer Science, Liverpool University
- Lines: 27
- Nntp-Posting-Host: bobr.csc.liv.ac.uk
-
- In article <fish.726442697@news.gsfc.nasa.gov>, fish@daacdev1.stx.com writes:
-
- > the default .profile for [k]sh users has the following line:
- > eval ` tset -s -Q -m ':?hp' `
-
- We use this:
-
- if [ "$TERM" = "" ]
- then
- eval `tset -s -Q -m 'lan:?xterm'`
- fi
-
- Replace "xterm" with whatever terminal you want to default to. You may also
- need this fallback code afterwards:
-
- if [ "$TERM" = "" -o "$TERM" = "unknown" ]
- then
- TERM=xterm
- fi
-
- Hope this helps !
-
- Richard K. Lloyd,
- Computer Science Dept., JANET : rkl@uk.ac.liverpool.compsci
- Liverpool University, Internet : rkl@csc.liv.ac.uk
- Merseyside, England, Q: "What's the world's fastest home micro ?"
- Great Britain. A: "The Archimedes A3000. 4 MIPS for under 800 pounds."
-