nano 错误:打开终端时出错:xterm-256color [英] nano error: Error opening terminal: xterm-256color

查看:33
本文介绍了nano 错误:打开终端时出错:xterm-256color的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装 OSX Lion 后,我尝试:

After the installation of OSX Lion, I tried to:

nano /etc/apt/sources.list

但我收到此错误:

Error opening terminal: xterm-256color

如果我尝试切换 terminal.app 首选项以xterm color"而不是 xterm-256color 打开终端窗口,一切正常.

If I try to switch terminal.app preferences to open terminal windows in "xterm color" instead of xterm-256color everything works fine.

发生了什么?

推荐答案

在 Red Hat 这对我有用:

On Red Hat this worked for me:

export TERM=xterm

更多信息:http://www.cloudfarm.it/fix-error-opening-terminal-xterm-256color-unknown-terminal-type/

这篇关于nano 错误:打开终端时出错:xterm-256color的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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