[gobolinux-users] false TERM=xterm-color

Isaac Dupree isaacdupree at charter.net
Tue Aug 14 15:28:32 UTC 2007


At last I tracked down what was giving me trouble with some things in 
rxvt-unicode... /etc/zshrc sets TERM to xterm-color even if it WAS set 
CORRECTLY as TERM=rxvt-unicode!  I've commented this out, for myself...

Also zsh is a little buggy it seems and needed something like this in my 
.zshrc, for the "home" and "end" keys to work for me in zsh in urxvt:

#see 
http://wiki.archlinux.org/index.php/Why_don't_my_Home_and_End_keys_work_in_terminals%3F
if echo $SHELL | grep -q zsh
then
# ESC key  or  Ctrl-V key  to see
bindkey "^[[1~" beginning-of-line
bindkey "^[[4~" end-of-line
bindkey "^[[7~" beginning-of-line
bindkey "^[[8~" end-of-line
fi

In the process of investigating, I also discovered how to make home/end 
keys work in 'less':

run command: lesskey -o ~/.less -
with stdin:
#command
\e[8~ goto-end
\e[7~ goto-line

At least, 7 and 8 are the numbers produced for me...

Isaac


More information about the gobolinux-users mailing list