Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-03-2005, 12:17 AM   #1
LQ Newbie
Registered: Jul 2003
Location: kerala
Posts: 9

Rep: Reputation: 0
ins,end,delete keys are mischevious


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...

Old 03-03-2005, 05:22 PM   #2
Registered: Apr 2004
Location: Oxford, UK
Distribution: Ubuntu, Debian, various
Posts: 230
Blog Entries: 5

Rep: Reputation: 33
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

#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.

Old 03-05-2005, 02:24 AM   #3
LQ Newbie
Registered: Jul 2003
Location: kerala
Posts: 9

Original Poster
Rep: Reputation: 0

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

if u know the command pls tell...

thank u


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Home / End keys in aterm Vgui Linux - General 4 08-11-2005 12:59 PM
Home/End keys don't work Abdul Linux - Software 2 07-25-2005 08:48 PM
home, delete, end keys problem in vi bujecas Slackware 10 01-12-2005 02:32 PM
Home and End keys in RXVT kevmccor Slackware 3 12-16-2004 04:51 PM
End & Home keys for Bash on FreeBSD mdixon *BSD 4 11-20-2004 08:57 PM

All times are GMT -5. The time now is 11:13 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration