UPDATE 3 - Better Solution
I kept Google'ing this until I came to a different solution. I ended up downloading the terminfo
directory from somewhere (I forgot where so I just posted the zip on my website here) and replaced my current working terminfo
directory with the new stuff.
The terminfo
directory, for me, is located at...
/usr/share/terminfo
UPDATE 2
bahamat helped me get to the solution. I added the following to my .profile
...
TERM="xterm"
export TERM
... and I am still able to keep "xterm-256color".
UPDATE
I figured out why this is happening. At one point, I changed some settings...
The default is "xterm-color" and I changed it to "xterm-256color". Is there a reason for this to be happening?
I just set up a second admin user account on a fresh install of Mac OS X Lion and now when I try to clear the terminal, I get the following error...
Hristo $ clear
terminals database is inaccessible
This is a problem for both user accounts and I have no idea why. I'm not sure if this is much help, but here is what $TERM
is set to...
Hristo $ echo $TERM
xterm-256color
Any thoughts as to why this might be happening?
Let me know if I need to show my .bashrc
or .profile
.