home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.coherent
- Path: sparky!uunet!cs.utexas.edu!usc!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!csus.edu!netcom.com!netcomsv!rgm!ray
- From: ray@rgm.com (Ray Mendonsa)
- Subject: Re: Terminal question
- Message-ID: <9301121019.36@rgm.com>
- Organization: RGM *nix - Sacramento, CA
- Date: Tue, 12 Jan 1993 18:19:35 GMT
- References: <C0pCCE.2oF@ATK.COM>
- Lines: 41
-
- mtarrant@ATK.COM (Mike Tarrant) writes:
-
- . . .
-
- > My question is, at a system level, how does Coherent "know" that the
- >terminal at the end of /dev/com4pl is a vt100, or a wyse50, or tvi925?
- >I know there is the TERM environmental variable in my .profile file,
- >but if I make that the terminal type, it'll be wrong when I log-on at
- >the console (ansipc).
- > As far I have been able to determine, terminal type is tied to the
- >user, and I think it should be known only by the system. What am I
- >missing?
-
- I was in a similar situation on my system. I typically used the console
- for logins, but occasionally dial in from away from home. I also have
- some friends who usually log in remote, but occasionally use the console.
-
- I assume all users logged in over com ports are using VT100, and console
- logins are always ansipc. MWC tech support gave me this bright idea
- to incude in /etc/profile :
-
- ---- begin /etc/profile fragment ----
- case `tty` in
- /dev/mono?) echo "Using ANSI PC term emulation."
- export TERM=ansipc;;
- /dev/com1fr) echo "Using VT100 term emulation."
- export TERM=vt100;;
- *) echo "How did you get in here?"
- export TERM=vt100;;
- esac
- ---- end /etc/profile fragment ----
-
- This structure allows you to select default emulation depending upon
- the output of `tty` (the login port). I think this is what you need.
-
- Thanks to MWC tech support!
- --
- /-Ray Mendonsa--ray@rgm.com--Administrator, rgm.com--Sacramento, CA---->
- | 916/923-5013 8n1,HST ; login: new ; Public access Usenet
- | There is only one truth, the absolute truth. | PGP v2.1 public key
- | Real men do it in four lines or less. | available upon request.
-