help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to install a terminfo entry (eterm-color from Emacs)?


From: Kevin Tran
Subject: How to install a terminfo entry (eterm-color from Emacs)?
Date: Tue, 24 Apr 2012 13:02:01 -0700

I want to run GNU Screen from within an Emacs term-mode buffer. When I try to 
do this I get an error:

$ screen
Cannot find terminfo entry for 'eterm-color'.

This error suggests that I should install the eterm-color terminfo entry. I 
attempted to do this in 2 ways which both failed.

The first attempt was to use the TERMINFO environment variable.

My .bashrc:

export TERMINFO=~/.terminfo

Then I did:

$ mkdir -p ~/.terminfo/e/
$ cp /usr/local/Cellar/emacs/23.3a/share/emacs/23.3/etc/e/* ~/.terminfo/e/

In the term-mode buffer the eterm-color entry is not found. It says that it 
gets eterm-color from TERMCAP instead of from the actual file.

$ infocmp
#       Reconstructed via infocmp from file: TERMCAP
eterm-color,
        am, mir, xenl,
        colors#8, cols#138, it#8, lines#41, pairs#64,
        bel=^G, bold=\E[1m, clear=\E[H\E[J, cr=^M,
        csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
        cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
        cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
        dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
        el=\E[K, el1=\E[1K, home=\E[H, ht=^I, ich=\E[%p1%d@,
        il=\E[%p1%dL, il1=\E[L, ind=^J, invis=\E[8m, kbs=\177,
        kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
        kdch1=\E[3~, kend=\E[4~, khome=\E[1~, knp=\E[6~, kpp=\E[5~,
        nel=^M^J, op=\E[39;49m, rc=\E8, rev=\E[7m, rmir=\E[4l,
        rmso=\E[27m, rmul=\E24m, rs1=\Ec, sc=\E7, setab=\E[4%p1%dm,
        setaf=\E[3%p1%dm, sgr0=\E[m, smir=\E[4h, smso=\E[7m,
        smul=\E[4m,

The second attempt was to use symlinks.

$ sudo mkdir /usr/share/terminfo/e/
$ sudo cp /usr/local/Cellar/emacs/23.3a/share/emacs/23.3/etc/e/* 
/usr/share/terminfo/e/

This failed in the same way as the first attempt.

Why did neither attempt work? How do I get the eterm-color terminfo entry 
installed?

I am running OS X 10.7.3 and Emacs 23.4.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]