06-11-2008
381,
8
Join Date: Nov 2006
Last Activity: 7 October 2015, 6:30 AM EDT
Posts: 381
Thanks Given: 3
Thanked 8 Times in 8 Posts
Usually I prefer to use vt100 unless I'm at the console.
export TERM=vt100 (for ksh)
TERM=vt100;export TERM (bourne shell)
examples:
TERM=hp;export TERM
TERM=sun;export TERM
TERM=sun-cmd;export TERM
normally after setting TERM, I will do a 'clear' command to test my TERM settings, if the screen clears then I'm alright, if it doesn't clear screen then TERM is wrong then you better be careful when you edit or vi anything.
In vi mode if you suspect your TERM is wrong how do you know if you are typing on the right line or overwriting the correct word? If your TERM is wrong when you move the cursor using arrow keys it may sometimes garble up the screen, so how do you know if you are typing correctly?
by pressing ctrl-l it will refresh the screen.
But sometimes it is not so good to use arrow keys because it may give some special character esp if your TERM is incorrect.
then you must know how to use the various commands in vi to move the cursor ard.
Last edited by sparcguy; 06-12-2008 at 12:01 AM..