home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!munnari.oz.au!spool.mu.edu!umn.edu!csus.edu!netcom.com!pdh
- From: pdh@netcom.com (Phil Howard )
- Subject: setting up a terminal from private termcap
- Message-ID: <1993Jan3.041637.26056@netcom.com>
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- Date: Sun, 3 Jan 1993 04:16:37 GMT
- Lines: 35
-
- Before I go off an try to accomplish this on my own, I wanted to check and
- see if anyone has come with with a way to do this. The FAQ does not have
- this. In fact it seems to have NOTHING about terminal setup questions at
- all (hint, hint).
-
- As a user of a UNIX system (where I don't have root access or authority
- or responsibility) I want to be able to use termcap entries that are not
- present in (or are present but defective in some way, at least for my own
- needs) /etc/termcap. Asking the sysadmin to make the changes for me is
- out of the question. If the scale of the changes were very small I would
- do this. It might not be. Besides, they have more important things to do.
-
- What I expect to do is write a shell script that basically handles my
- terminal setup. It will be executed via an alias and pass back via stdout
- the string values for TERM and TERMCAP environment variables. I will have
- to apply my own logic to finding the appropriate string. There will be a
- termcap file in my home directory (perhaps called .termcap) which will be
- searched first, then /etc/termcap will be searched if the entry is not found
- there.
-
- Some questions:
-
- If I choose to execute "stty" but not "tset", is there any functionality
- I will be missing that I should consider?
-
- What is the best way to make this very portable? Use /bin/sh?
-
- What is the best way to pass back the TERM and TERMCAP string data so that
- any kind of shell could be setup (with an alias, for instance), to readily
- use it?
- --
- /************************************************************************\
- | Phil Howard, pdh@netcom.com, KA9WGN Spell protection? "1(911)A1" |
- | "It's not broken... it's just functionally challenged" --Phil and Pete |
- \************************************************************************/
-