home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / question / 15121 < prev    next >
Encoding:
Text File  |  1993-01-02  |  2.1 KB  |  45 lines

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