Unix屏幕实用程序错误:找不到'xterm-256color'的termcap条目 [英] Unix screen utility error: Cannot find termcap entry for 'xterm-256color'

查看:466
本文介绍了Unix屏幕实用程序错误:找不到'xterm-256color'的termcap条目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过Mac上的ssh连接在NetBSD系统上工作,我想使用screen实用程序,以便我可以启动过程并在终端连接中断后返回到它们.当我键入screen时,我收到错误消息:

I work on a NetBSD system through an ssh connection from my Mac and I want to use the screen utility so that I can start processes and come back to them after my terminal connection has been interrupted. When I type screen I get the error message:

Cannot find termcap entry for 'xterm-256color'

浏览论坛帖子后,我认为这与远程计算机上的termcap有关,但事实并非如此.我可以启动屏幕,而另一台计算机(通常是我无法访问的另一台计算机)的ssh会话中没有错误.这表明我需要在本地计算机上进行配置,但是我无法弄清楚什么或如何进行.尽管这篇文章被标记为"gnu-screen",但我怀疑我正在使用Berkeley屏幕,尽管我不知道这是否有显着区别.

After looking through forum posts, I thought it had something to do with termcap on the remote machine, but that appears not to be the case; I can initiate screen with no errors from an ssh session from another computer, one to which I don't generally have access. This suggests that I need to configure something on my local machine, but I haven't been able to figure out what or how. Although this post is tagged "gnu-screen" I suspect that I'm working with Berkeley screen, though I don't know whether that is a significant distinction.

推荐答案

快速修复:运行TERM=xterm screen而不是screen.

Quick fix: run TERM=xterm screen instead of screen.

您收到此错误,因为在Mac上您具有TERM=xterm-256color,而xterm-256color不在远程计算机的termcap中.从另一台计算机连接时,不会出现错误,因为它的TERM变量设置为其他变量.

You get the error because on your mac you have TERM=xterm-256color, and xterm-256color is not in the remote machine's termcap. You don't get the error when you connect from the other computer because it has its TERM variable set to something else.

这篇关于Unix屏幕实用程序错误:找不到'xterm-256color'的termcap条目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆