Private termcap/terminfo entries jimc, 950725 Generally the system staff don't add private termcap entries to the public database, mainly because it's so easy for a user to do his own. Place the desired termcap entry or entries in a file -- for this example let's call it $HOME/mytermcap (full path needed). Then, if you're using csh or its variants, these commands will make use of it -- they would go in your .login file (not .cshrc). setenv TERMCAP $HOME/mytermcap set term = hal-console (or whatever its name is) set noglob eval `tset -sQ` The effect will be to copy your private termcap entry out of the file into the environment, and to initialize the terminal with the :is= string from the termcap. Quite a number of variations on this theme are possible. If you sometimes use your special terminal and sometimes a public one, you will want to imitate /usr/math/default/askterm in doing the following steps: 1. Is $TERM set? If not, or if it's set to "unknown", ask the user what the terminal type is. 2. Knowing the terminal type, decide if it's one of your private ones, and setenv TERMCAP (your file name) if so; otherwise leave TERMCAP unset to get the default /etc/termcap. 3. Execute tset. Make sure that the user actually specified a terminal type that tset was able to find in termcap. You could copy askterm and modify it to suit your needs. Presently on the Sparcstations running SunOS 4.1.3 we are using the 4.1.1 version of vi that uses TERMCAP. Micro-Emacs also uses TERMCAP, as does Gnu Emacs. However on Solaris you will need to use TERMINFO. (Do "uname -a" if you aren't sure which operating system you have.) The procedure is similar. First, setenv TERMINFO $HOME/myterminfo pointing to your private terminfo directory. Then if necessary use captoinfo to convert termcap entries to terminfo source code, and use "tic" to compile your terminfo specification into the private directory. From there the procedure is analogous to what's shown above, except that instead of "set noglob; eval `tset -sQ`" you would use "tput init". You will want to read the man pages for the various commands mentioned above.