home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / hp / 13247 < prev    next >
Encoding:
Internet Message Format  |  1992-11-23  |  3.2 KB

  1. Path: sparky!uunet!dtix!relay!sunoco!whiles
  2. From: whiles@nswc.navy.mil (William Scott Hiles x1568)
  3. Newsgroups: comp.sys.hp
  4. Subject: tcsh, emacs, rlogin and termcap support
  5. Keywords: tcsh, emacs, rlogin, termcap
  6. Message-ID: <1992Nov23.153242.10946@relay.nswc.navy.mil>
  7. Date: 23 Nov 92 15:32:42 GMT
  8. Sender: news@relay.nswc.navy.mil
  9. Reply-To: whiles@nswc.navy.mil
  10. Followup-To: comp.sys.hp
  11. Organization: Naval Surface Warfare Center, Dahlgren Division
  12. Lines: 57
  13.  
  14. There was some discussion on the termcap for HP-UX but the responses seem to 
  15. indicate that HP does not think (or want) applications to run on multiple
  16. platforms.  The responses seem to indicate that there are not applications
  17. which will run on a sun and a HP.  However, there are a few examples of
  18. applications that we need for all systems and these require the termcap.
  19.  
  20. Example 1:
  21.   TCSH is very popular and is available on the sun, sgi, dec, and ibm platforms.  
  22.   This enhanced (much better than anything previously available) shell uses the
  23.   termcap and requires the termcap library to be compiled completely.  When using
  24.   the NIS to allow the passwd to be shared across machines composed of suns,
  25.   or SGIs, or anything else, you are limited the common shell.  Users of our system
  26.   want tcsh to the extend that they would rather just not use the HP system than
  27.   give up the tcsh functionality.  
  28.  
  29.   My solution to this problem was to get the emacs 18.58 files and copy the
  30.   src/termcap.c and src/tparam.c to the tcsh directory and modify the following
  31.   lines in the Makefile for tcsh-6.00:
  32.  
  33.   TERMCAPS= termcap.o tparam.o
  34.   TERMCAPO=termcap.${SUF} tparam.${SUF}
  35.  
  36.   ALLSRCS=  ${SHSRCS} ${TWSRCS} ${EDSRCS} ${TCSRCS} ${VHSRCS} ${TERMCAPS}
  37.   DISTSRCS= ${PSSRCS} ${TWSRCS} ${EDSRCS} ${TCSRCS} ${AVSRCS} ${TERMCAPS}
  38.  
  39.   OBJS= ${SHOBJS} ${TWOBJS} ${EDOBJS} ${TCOBJS} ${TERMCAPO}
  40.  
  41.   The line "LIBES= -ltermcap               ## BSD style things, hpux" must be
  42.   commented out so that it will not try to load the library.  TCSH can now be
  43.   compiled completely.  The only thing left to do is to get a complete termcap
  44.   file (from a sun or some reasonable machine) and copy it to the /etc/ directory.
  45.   Edit the /etc/termcap file so that the hp2621 is also aliased for hpterm.
  46.   With all this done, tcsh will work perfectly.  I have not had any problems since
  47.   installing it and now the users have no excuse to avoid the HP system.
  48.  
  49. Example 2:
  50.   Emacs is a very popular editor for all platforms but it requires termcap to
  51.   work.  It comes with the necessary code to be compiled without a termcap 
  52.   library, but you need a good termcap file.  I could not find one on my system
  53.   by typing "find / -name termcap -print" so I got one from some other system
  54.   and added the alias of hpterm to the hp2621.  It works fine.
  55.  
  56. Example 3: 
  57.   It is very common for us to rlogin to another system.  The HP does not recognize
  58.   the sun-cmd ad a type of terminal and the sun does not recognize the hpterm
  59.   as a valid terminal.  
  60.  
  61. From a users perspective, it would appear that HP just does not want anyone to be
  62. able to work on multiple platforms with them.  
  63.  
  64. ---
  65. Scott Hiles
  66. whiles@relay.nswc.navy.mil
  67.  
  68. Standard disclaimer:
  69.   The opinions expressed are those of my own and do not necessarily 
  70.   reflect those of the DOD or the Navy.  I accept full responsibility.
  71.