Are your arrows keys not working in less and vi?

I’ve had this problem sporadically with iTerm on my Mac, and I seem to remember this happening recently on my Linux machines as well. If you have this problem, try this:

$ export TERM=linux

If this works, on a Mac you can set it in your .profile:

if [ "${TERM_PROGRAM}" == "iTerm.app" ]
then
export TERM=linux
fi

On Linux, you can do the same, but leave out the if and just do the export line.

About Josh

Josh is a software architect and engineer with a fine arts background. You can connect with him on Google+.
This entry was posted in Tech and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>