How to fix Error opening terminal: xterm-256color unknown terminal type

Since Lion was released I encounter on my terminal the following error: ‘xterm-256color’: unknown terminal type when using nano editor or top command on ubuntu machine for example.

On mac’s terminal the command:
echo $TERM
returns
xterm-256color

To fix this problem you’ve to modify your~/.profile 
nano ~/.profile 
add those lines to fix this
TERM="xterm"
export TERM

Save & quit and restart your terminal.app

By Posted in Articles on Oct 31, 2012

Print This Listing
Author: CloudFarm

As Information Technology Officer, Nicola Tonon leads EIUC’s central IT system. As ITO, he is in charge of making sure that all IT strategic initiatives are in line with the EIUC’s mission, culture, and long-term goals. The ITO is responsible for IT-related issues ranging from policy and resource allocation to protocol and organization. Nicola has a deep understanding of the importance technology plays in research and related activities and is committed to finding new ways to support staff and students and endeavours through the use of technology. He works closely with students and staff to deliver programmes and services that enhance teaching, research, and student activities.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>