LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

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

Rep: Reputation: 0
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
 
Old 03-03-2005, 05:22 PM   #2
avarus
Member
 
Registered: Apr 2004
Location: Oxford, UK
Distribution: Ubuntu, Debian, various
Posts: 230
Blog Entries: 5

Rep: Reputation: 32
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
 
Old 03-05-2005, 02:24 AM   #3
lnxlover
LQ Newbie
 
Registered: Jul 2003
Location: kerala
Posts: 9

Original Poster
Rep: Reputation: 0
hi,

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

if u know the command pls tell...

thank u
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 02:20 AM.

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