如何在CentOS 5.7上获得TERM = screen-256color?

CentOS 6.0提供了将TERM设置为screen-256color 。 不过,它在CentOS 5.7中不起作用。

怎样才能让CentOS 5.7支持screen-256color

如果你有一个CentOS 6方便的话,你应该能够得到screen-256color的terminfo文件的来源,然后在CentOS 5上编译它。

看一眼:

http://tldp.org/HOWTO/Text-Terminal-HOWTO-16.html

我没有尝试过,但是这样的事情:

在CentOS 6: infocmp screen-256color > /tmp/screen-256color.terminfo ,输出文件到CentOS 5框。 在CentOS 5框中, tic screen-256color.terminfo 。 从man页面,以root身份,将编译后的terminfo文件放到/ usr / share / terminfo中。

当然,阅读文档和手册页等

xterm-256color可用? 我还没有用过CentOS,但是xterm已经有一段时间了。