Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm having a few issues with the default version of Nano...Its extremely buggy and when I scroll between characters they mysteriously change without my editing.

How do I update my nano version? The version is 2.0.9 and it doesnt have anything more recent when I do yum update nano.

The nano webpage shows 2.2.6.

Whats the best way of upgrading this?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

I think it's more likely that your TERM variable isn't set correctly, rather than there being a defect in nano. Basically, if the TERM variable is not right for your terminal program, then there will be screen drawing errors (i.e., if your terminal is emulating VT100, but your TERM is set to xterm, it'll use codes that will not redraw the screen correctly, especially for an application like nano)

What client are you using to access the box, at least in terms of using nano? Can you do something like echo $TERM (before invoking nano) and tell us what the result is?

Update:

The terminal config files are in /usr/share/terminfo somewhere. On my CentOS 6 box, I see that the x/xterm-256color file is part of the "ncurses-base-5.7-3.20090208.el6.i686" package. Do you have that package installed? Run rpm -qa |grep ncurses and it should show up (I think nano only depends on the ncurses-libs package, so ncurses-base may not be installed). If not, run "yum install ncurses-base".

share|improve this answer
    
Using terminal with MacOS X $TERM = xterm-256color –  DD. Jan 27 '12 at 16:03
    
Updated the answer. –  cjc Jan 27 '12 at 16:18
    
I'm running centos 5 with this installed ncurses-5.5-24.20060715...yum update ncurses didnt update anything –  DD. Jan 30 '12 at 11:03
    
When you get to your CentOS box, do an "echo $TERM". What does that say? You said you did the "echo $TERM" on the Mac, but I'm not sure if you did it on the Linux box. –  cjc Jan 30 '12 at 11:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.