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