A possible solution for odd Terminal behaviors

Nov 03, '04 08:42:00AM

Contributed by: prk

I have forever had problems with the Terminal not acting as it should. For instance, the Home and End keys did not do what I expected them to. Well, I finally found out how to get everything working perfectly. Just open a Terminal and type:

export TERM=linux
It works for Terminal, it works when I'm ssh'ed into Linux, it works when I'm ssh'ed into FreeBSD, it works in Postgres psql. It just works. Finally a solution.

Edit your .bash_profile and add the above command, and it will stick whenever you need it.

[robg adds: I haven't tested this one beyond making sure that it didn't break anything. Terminal seems to work fairly well for me in VT100 mode, set via the Terminal -> Preferences dialog.]

Comments (12)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20041102133243355