LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-16-2004, 08:24 AM   #1
kevmccor
Member
 
Registered: Aug 2004
Location: Texas
Distribution: slackware
Posts: 158

Rep: Reputation: 44
Home and End keys in RXVT


When using RXVT the "Home" and "End" keys result in a "~" instead of moving the cursor. They work properly in xterm, xemacs, and other programs. I have a pc105 en_us Mitsumi (very standard) keyboard, using Slackware 10.0. Any help would be appreciated.

Thanks,
Kevin
 
Old 12-16-2004, 02:32 PM   #2
AntEater
Member
 
Registered: Jan 2003
Location: Vermont
Distribution: Slackware
Posts: 39

Rep: Reputation: 19
re: Home and End keys in RXVT

While it may not solve your problem, as a work around the emacs keybindings "C-e" for end of line and "C-a" for beginning of line should work. What is $TERM set to in your shell environment? I've never seen this problem with rxvt in Slackware but you might want to check your /etc/termcap settings to see if something has been changed.
 
Old 12-16-2004, 03:06 PM   #3
ror
Member
 
Registered: May 2004
Distribution: Ubuntu
Posts: 583

Rep: Reputation: 33
I had this problem when moving from bash to zsh, I managed to fix it but have forgotten right now :\
 
Old 12-16-2004, 04:51 PM   #4
kevmccor
Member
 
Registered: Aug 2004
Location: Texas
Distribution: slackware
Posts: 158

Original Poster
Rep: Reputation: 44
I tried "C-e" for end of line and "C-a" for beginning and it works. The $TERM variable gives "xterm." I looked at /etc/termcap, but I have no idea what is going on there.

I checked file:///usr/doc/rxvt-2.7.10/doc/rxvtRef.html#KeyCodes and it says that:

Home ESC [ 7 ~ ESC [ 7 $ ESC [ 7 ^ ESC [ 7 @
End ESC [ 8 ~ ESC [ 8 $ ESC [ 8 ^ ESC [ 8 @

whatever that means. I can get the characters "~ $ ^ @" by pressing Shift, Ctl, Alt and the Home and Delete keys, as apparently indicated in the KeyCodes table.

Here is my ~/.Xdefaults for RXVT:

! rxvt
rxvt.geometry: 100x24
rxvt.background: black
rxvt.foreground: white
rxvt.savelines: 128
!rxvt.font: smoothansi fkp glisp
rxvt.font: smoothansi
rxvt.scrollBar: True

And here is my start-up command in my xfce menu:

rxvt -bg black -fg AntiqueWhite -sl 128
 
  


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



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
term (rxvt) creates ~ when pressing home/end ninmonkeys Linux - General 4 11-22-2004 03:37 PM
rxvt prints ~ on home/end keypress mpn Linux - General 2 10-17-2004 04:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:32 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration