The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Minicom runscript: How to send escape character ( \ ) rkhanna Shell Programming and Scripting 1 10-02-2008 07:14 AM
want to view the escape sequence sweta UNIX for Advanced & Expert Users 4 10-09-2006 07:20 AM
insert escape charactor within VIM cin2000 Shell Programming and Scripting 2 03-23-2006 09:46 AM
Escape sequence puspendu Shell Programming and Scripting 4 02-07-2006 11:14 PM
What is "escape sequence" in tcsh on Solaris modemer UNIX for Advanced & Expert Users 2 02-15-2005 02:00 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 07-27-2007
Registered User
 

Join Date: Jul 2007
Posts: 8
Both HOME and INSERT key send same escape sequence on ssh

I couldn't seem to make 'HOME' key work on my remote windows ssh client to a Fedora Core3 server (the home key works perfectly when i'm physically on site.)
To my surprise, using control+V it seems that both my home and insert key send the same escape sequence ^[[2~, so when I press home in VI it actually toggles replace mode. How could this be possible? I've edited /etc/inputrc and every key works perfectly on site. So it must be my windows SSH client (the free one from www.ssh.com) that has problems.

my $TERM=xterm
controlVBackspace gives ^H (works)
controlVDel gives ^? (function as backspace in remote ssh )
controlVHOME gives ^[[2~ (functions as insertin remote ssh )
controlVEND gives ^[[4~ (works fine!!! remotely )

stty -a yeilds:

speed 38400 baud; rows 24; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = M-^?; eol2 = M-^?;
start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V;
flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread -clocal -crtscts
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
-iuclc ixany imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke

my /etc/inputrc:

"\eOH": beginning-of-line
"\eOF": end-of-line
"\e[H": beginning-of-line
"\e[F": end-of-line
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[7~": beginning-of-line
"\e[8~": end-of-line
"\e[3~": delete-char

"\C-?": delete-char
"\C-h": backward-delete-char

$if term=gnome
DEL: delete-char
Meta-DEL: kill-word
"\M-\C-?": kill-word
$endif

Last edited by grossgermany; 07-27-2007 at 04:19 PM.
Reply With Quote
Google The UNIX and Linux Forums
Forum Sponsor
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:26 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0