Sniptools » Tips/Tricks

Fixing Nano Issues on Linux

January 13, 2004 Views (5,561) /  Comments (1) /  Trackback (0) / Digg/Share


Licensing issues between Pine and RedHat have led to the disapperance of PINE from Linux distributions on most web hosts, which in turns means the vanishing of the friendly text editor called “Pico”. The option my webhost provides me now is something called “nano” (click here for a review from Linuxgazette).

Nano, however, has a bunch of bugs — the most criminal of them being one where newlines appear at will in the file you are editing, the delete and backspace and meta keys cease to work, the cursor mark doesn’t proceed to the new line etc. It’s a bizarre experience. And my webhost was at his wit’s end.

I do miss Pico, and no, I wouldn’t learn VI or EMACS if I had to do it to save my life. So with all my digging and searching, I’ve managed to stumble upon a work-around to Nano instead.

Just execute the following in your shell environment (e.g., through .bashrc for bash, or .cshrc for tsch)

export TERM=vt100
alias pico=’nano -p -w -i -c’

If it is not in the auto sourced files, then just “source” this file on the shell, and your “pico ” should work again, as usual. Click here for the command line options of nano.

(249 Words | )

 
Possibly Related
Other stuff that may be of interest  
Comments
What readers have asked/said/added.

^1 coolio said on April 10, 2004 9:12 PM:

this is cool thanks saved a lot of unprediktable behavior from my editor on the latest rh. cheers

 

Post a comment
Please be decent while posting comments, don't make us delete them, thanks.




Will be spam-protected.

Remember?


Comment Preview

XX said on :

 

Trackbacks
Ping @ http://sniptools.com/ping/2004-01/64. Listed below are links to weblogs that reference this article.

 

Referrals
*Some* places that viewers have come to this page from: