找到你要的答案

Q:terminfo seems to not work in csh

Q:terminfo似乎不工作的

I want to use screen-256color term and my system does not have one, so I compiled it in my home dir. Following is my problem

xxxx: ~/.terminfo > tree
.
|-- s
|   `-- screen-256color
`-- x
    `-- xterm-256color

2 directories, 2 files
xxxx: ~/.terminfo > setenv TERMINFO ~/.terminfo
xxxx: ~/.terminfo > setenv TERM  screen-256color
csh: No entry for terminal type "screen-256color"
csh: using dumb terminal settings.

It seems that the system can not detect the screen-256color file?

我想用screen-256color术语与我的系统没有一个,所以我在我的家目录编制。以下是我的问题

xxxx: ~/.terminfo > tree
.
|-- s
|   `-- screen-256color
`-- x
    `-- xterm-256color

2 directories, 2 files
xxxx: ~/.terminfo > setenv TERMINFO ~/.terminfo
xxxx: ~/.terminfo > setenv TERM  screen-256color
csh: No entry for terminal type "screen-256color"
csh: using dumb terminal settings.

看来,系统无法检测到screen-256color文件吗?

answer1: 回答1:

On most Linux's, terminfo has replaced termcap. However, some were slow to replace termcap with terminfo for a few applications such as csh/tcsh (such as Slackware). If that is the case, it is likely looking for an entry in /etc/termcap

You can check this easily by looking at the libraries listed for

ldd `which csh`

在大多数的Linux,terminfo取代termcap。然而,有些慢,与一些应用如CSH / tcsh terminfo取代termcap(如Slackware)。如果是这样的话,它有可能寻找在/ etc / termcap入口

你可以通过查看列出的库方便地检查

ldd `which csh`
linux  terminal  csh  tmux  terminfo