LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Linux - Software (http://www.linuxquestions.org/questions/forumdisplay.php?f=2)
-   -   ins,end,delete keys are mischevious (http://www.linuxquestions.org/questions/showthread.php?t=297024)

lnxlover 03-03-2005 12:17 AM

ins,end,delete keys are mischevious
 
sir,

my linux shows a difficult problem... its that when i use the insert ,end & delete keys.. only the character ' ~ ' appears.... and i dont get its actual function..

this problem is there only in the command line prompt..when typing
with in a file (using vi) there is no problem....

and also when i login to some other user (by using su - ) tehre is no probs...



can anyone suggest a solution for this problem....
thank u...

lnxlover

avarus 03-03-2005 05:22 PM

What shell are you using? Bash, tcsh, zsh?

I use zsh and have the following in my .zshrc:

#Rebind HOME and END to do the decent thing:
bindkey '\e[1~' beginning-of-line
bindkey '\e[4~' end-of-line
case $TERM in (xterm*)
bindkey '\eOH' beginning-of-line
bindkey '\eOF' end-of-line
esac

#To discover what keycode is being sent, hit ^v
#and then the key you want to test.

#And DEL too, as well as PGDN and insert:
bindkey '\e[3~' delete-char
bindkey '\e[6~' end-of-history
bindkey '\e[2~' redisplay

#Now bind pgup to paste the last word of the last command,
bindkey '\e[5~' insert-last-word

But for bash the commands are a little different.

TIM

lnxlover 03-05-2005 02:24 AM

hi,

i read ur reply
but... i am using a bash shell.....

if u know the command pls tell...

thank u


All times are GMT -5. The time now is 06:51 PM.