LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   termcap (https://www.linuxquestions.org/questions/slackware-14/termcap-26864/)

spook 07-30-2002 07:58 PM

termcap
 
Hi,
I have installed slackware 8.1 on both my desktop and one of my servers. The server is running qmail, imap, pop and squirrelmail webmail, and is working fine. One problem is bugging me however. I get termcap problems when using vi, instead of giving me a full terminal window with vi in it I get only the bottom par of the screen running vi with the cursor in the wrong place. This doesn't greatly bother me as I am a joe user but a couple of my users are less than happy with this state of affairs. When running screen I get the error message:
"tgetent: warning: termcap entry too long". Should I replace /etc/termcap with a more suitable termcap and if so, where should I find a better one.
Thanks
spook
.

Excalibur 07-30-2002 08:48 PM

I have looked at my /etc/termcap file and it appears OK, I didn't see any corruption present. Please investigate your file to see if corrupted. Verify that you have a TERM variable set properly for you and your users. Should be at the console mode, TERM=linux, if X then, TERM=xterm. Use "echo $TERM" to view setting. If not then, from bash prompt try "export TERM=linux" for console mode or "export TERM=xterm" in X session. You should also be able to verify the two term types in the termcap file. If the TERM variable is not set correctly then investigate the /etc/profile file. I think that is the initial setting at login for console mode.

A possible corruption that is not visible could be created if the termcap file was edited in DOS ASCII mode. It would add CRLF to the end of each line. If the file is corrupted, check for a file termcap-Linux, it should be a copy of the original. Else, copies are on the 2nd CD of the 8.1 distribution under the /live/etc directory. If that is not available then look in the /slackware/a directory of your installation set at the packages there. I think it is the etc-5.0-noarch-7.tgz package. You could attempt to extract just the termcap-Linux file.


All times are GMT -5. The time now is 06:45 PM.