Fixing Nano Issues on Linux

Written by Shanx January 13th, 2004

Fixing Nano Issues on Linux

Continue reading →
Close

Licensing issues between Pine and RedHat have led to the disapperance of the friendly text editor called “Pico”, putting “GNU Nano” in its place. The latter has its set of problems, lines disappear etc. Here’s a make-shift workaround.

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.

Posted in Miscellaneous

1 Comment

Tagged with

One Comment

  1. coolio says:

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

Leave a Reply

Miscellaneous

I use the Nokia e61i as my mobile. Instead of my telco’s data plan (which offers me a meagre 1GB per month) I simply prefer to use my home wireless [...]

Continue reading →

View all

Web Tools

If you use Firefox (and if not, what are you waiting for?) you are familiar with useful extensions such as Video Downloader, which allow you to save local copies of [...]

Continue reading →

View all

Databases

This regexp worked for me. SELECT * FROM table WHERE NOT column ~ ( ‘^(‘|| $$[\09\0A\0D\x20-\x7E]|$$|| — ASCII $$[\xC2-\xDF][\x80-\xBF]|$$|| — non-overlong 2-byte $$\xE0[\xA0-\xBF][\x80-\xBF]|$$|| — excluding overlongs $$[\xE1-\xEC\xEE\xEF][\x80-\xBF]{2}|$$|| — straight 3-byte [...]

Continue reading →

View all

Windows

So you’ve been visited by the much dreaded CRC — Cyclical Redundancy Check error, most likely encountered while copying files between hard disks. On Mac OSX, this will usually appear [...]

Continue reading →

View all

Mac OSX

A simple app ought to do it. Download iRinger. It’s a Windows app. If you’re on Mac, you’ll want to use it within a virtual machine, like Parallels or VMWare [...]

Continue reading →

View all

System Maintenance

I use the Nokia e61i as my mobile. Instead of my telco’s data plan (which offers me a meagre 1GB per month) I simply prefer to use my home wireless [...]

Continue reading →

View all

Wordpress

Among many new exciting features, WordPress 2.6 released the ability to store each and every revision of your posts, like an elaborate update history. Now this can be a pretty [...]

Continue reading →

View all

Audio/Video

Panic, the makers of some fantastic software such as Transmit or Panic, also have the most light-weight audio converter for the Mac OSX platform. It’s called Audion: get it here. [...]

Continue reading →

View all

iPhone

A simple app ought to do it. Download iRinger. It’s a Windows app. If you’re on Mac, you’ll want to use it within a virtual machine, like Parallels or VMWare [...]

Continue reading →

View all