terminal - 屏幕: Cannot find terminfo entry for 'xterm-256color'

标签 terminal osx-lion terminfo

当我运行时

screen

在远程主机(运行Linux)上,我收到以下错误:

Cannot find terminfo entry for 'xterm-256color'.

我正在 Mac OSX Lion 上运行终端来访问远程主机。我用谷歌搜索找到了这个问题的解决方案,似乎人们建议这样做

export TERM=xterm-color

这对我不起作用。

请帮忙。

最佳答案

找出支持哪个术语:

ls /usr/share/terminfo/x

这将为您提供支持的术语列表,即

xterm
xterm-xfree86

设置环境变量:

export TERM=xterm-xfree86

和运行屏幕:

TERMINFO='/usr/share/terminfo/' screen

关于terminal - 屏幕: Cannot find terminfo entry for 'xterm-256color' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12345675/

相关文章:

xcode - 安装 Xcode 4.3 后无法获得 MacPort 功能

linux - 更改 xterm 为组合键生成的转义序列

android - 如果路径包含空格,adb 命令将无法执行

macos - Cocoa for Mac OS 10.7 中提供标准警告三角形

c++ - 从终端打开 Clion

python - 导入错误 : cannot import name log

terminal - Terminfo smkx 和应用程序光标键与应用程序键盘

emacs - 如何安装 terminfo 条目(来自 Emacs 的 eterm-color)?

node.js - 打印最后的终端内容

git - 如何以自定义漂亮的日志格式在每个新行上附加选项卡?