X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_05,SPF_HELO_PASS,TW_MR,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Harry Putnam Subject: Re: Why doesn't ~/inputrc work Date: Wed, 27 Apr 2011 23:26:51 -0500 Lines: 126 Message-ID: <87aafbc86s.fsf@newsguy.com> References: <87ei4w6hvx DOT fsf AT newsguy DOT com> <4DAF035B DOT 6030408 AT redhat DOT com> <4DAF140A DOT 8050501 AT cs DOT umass DOT edu> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Eliot Moss writes: > On 4/20/2011 12:01 PM, Eric Blake wrote: >> On 04/20/2011 09:51 AM, Harry Putnam wrote: > >> Do you have CRLF line endings on your ~/.inputrc? That would explain >> failures. To fix it, run 'd2u ~/.inputrc'. Other than that, it works >> for me, so I'm not sure why you're having problems. > > A great suggestion. I also thought of two other things: > > - If the INPUTRC environment variable is set, you may be reading > something different from what you think > > - How and whether a terminal generates meta- keys will clearly affect > the specific bindings you mentioned. So you may need to dig into > the specific terminal and into stty settings for the terminal > driver I kind of relied on the fact that emacs responds to Alt-x the same on windows as it does on linux (its how you enter certain kinds of commands in emacs) and is usually referred to as `M-x' If there was a problem with the meta key, seems like it would show up then too. I guess a way to test would be to use a different entry that relies on something besides the meta (alt) key... I've never used anything else since my inputrc files are not that complex. Can you show an example of an entry that uses some other combo? And explain how one would enter it into an .inputrc When I see those Sequences and ctrl char... I get very confused... and not sure how to create an inputrc entry using them. Someone mentioned using stty to figure out what is going on. I've included the output of `stty -a' and `env' in case anyone can see something useful there. ------- --------- ---=--- --------- -------- ,---- | stty -a | | speed 38400 baud; rows 24; columns 80; line = 0; | intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = ; | eol2 = ; swtch = ^Z; 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 -tostop -echoctl -echoke `---- env HOMEPATH=\cygwin\home\harry MANPATH=/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man harry=/cygdrive/c/users/harry HOSTNAME=m2 SHELL=/bin/bash TERM=screen WINDIR=C:\Windows SSH_CLIENT=127.0.0.1 49178 22 USERDOMAIN=m2 ALLUSERSPROFILE=C:\ProgramData OS=Windows_NT SSH_TTY=/dev/tty0 USER=harry HISTFILESIZE=3000 TERMCAP=SC|screen|VT 100/ANSI X3.64 virtual terminal:\ :DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:bs:bt=\E[Z:\ :cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:ct=\E[3g:\ :do=^J:nd=\E[C:pt:rc=\E8:rs=\Ec:sc=\E7:st=\EH:up=\EM:\ :le=^H:bl=^G:cr=^M:it#8:ho=\E[H:nw=\EE:ta=^I:is=\E)0:\ :li#24:co#80:am:xn:xv:LP:sr=\EM:al=\E[L:AL=\E[%dL:\ :cs=\E[%i%d;%dr:dl=\E[M:DL=\E[%dM:dc=\E[P:DC=\E[%dP:\ :im=\E[4h:ei=\E[4l:mi:IC=\E[%d@:ks=\E[?1h\E=:\ :ke=\E[?1l\E>:vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l:\ :ti=\E[?1049h:te=\E[?1049l:us=\E[4m:ue=\E[24m:so=\E[3m:\ :se=\E[23m:mb=\E[5m:md=\E[1m:mr=\E[7m:me=\E[m:ms:\ :Co#8:pa#64:AF=\E[3%dm:AB=\E[4%dm:op=\E[39;49m:AX:\ :vb=\Eg:G0:as=\E(0:ae=\E(B:\ :ac=\140\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:\ :po=\E[5i:pf=\E[4i:k0=\E[10~:k1=\EOP:k2=\EOQ:k3=\EOR:\ :k4=\EOS:k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:\ :k9=\E[20~:k;=\E[21~:F1=\E[23~:F2=\E[24~:F3=\E[1;2P:\ :F4=\E[1;2Q:F5=\E[1;2R:F6=\E[1;2S:F7=\E[15;2~:\ :F8=\E[17;2~:F9=\E[18;2~:FA=\E[19;2~:kb=^?:K2=\EOE:\ :kB=\E[Z:kF=\E[1;2B:kR=\E[1;2A:*4=\E[3;2~:*7=\E[1;2F:\ :#2=\E[1;2H:#3=\E[2;2~:#4=\E[1;2D:%c=\E[6;2~:%e=\E[5;2~:\ :%i=\E[1;2C:kh=\E[1~:@1=\E[1~:kH=\E[4~:@7=\E[4~:\ :kN=\E[6~:kP=\E[5~:kI=\E[2~:kD=\E[3~:ku=\EOA:kd=\EOB:\ :kr=\EOC:kl=\EOD:km: USERNAME=harry PATH=/usr/local/bin:/cvsb/m2/home/harry/scripts:/cvsb/m2/home/harry/scripts/perl:/cygdrive/c/users/harry/emacs/bin:/cygdrive/c/cygwin/bin:/cygdrive/c/cygwin/wbin:/wbin:/cygdrive/c/Users/harry/bin:/usr/local/bin:/cvsb/m2/home/harry/scripts:/cvsb/m2/home/harry/scripts/perl:/cygdrive/c/users/harry/emacs/bin:/cygdrive/c/cygwin/bin:/cygdrive/c/cygwin/wbin:/wbin:/cygdrive/c/Users/harry/bin:/usr/local/bin:/usr/bin:/bin:%CommonProgramFiles%/Microsoft Shared/Windows Live:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files (x86)/ATI Technologies/ATI.ACE/Core-Static:/cygdrive/c/putty:/cygdrive/c/Users/harry/emacs/bin:/cygdrive/c/Program Files (x86)/Common Files/Acronis/SnapAPI:%ProgramFiles%/digieffects/bin:/cygdrive/c/Program Files (x86)/QuickTime/QTSystem:/bin MAIL=/var/spool/mail/harry STY=3780.tty0.m2 SYSTEMDRIVE=C: PWD=/cygdrive/c/Users/harry CYGWIN=ntsec tty EDITOR=/cygdrive/c/vim/vim70/vim USERPROFILE=C:\Users\harry LANG=C.UTF-8 LOGONSERVER=\\M2 PS1=\[\033[01;31m\]HOST:\h \[\033[01;33m\]\w\n\u > \[\033[00m\] HOME=/cygdrive/c/Users/harry LOGONSERVER=\\M2 PS1=\[\033[01;31m\]HOST:\h \[\033[01;33m\]\w\n\u > \[\033[00m\] HOME=/cygdrive/c/Users/harry PS4=$LINENO: SHLVL=2 PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC HOMEDRIVE=C: COMSPEC=C:\Windows\system32\cmd.exe SYSTEMROOT=C:\Windows LOGNAME=harry PRINTER=\\HARVEY\EPSON Stylus CX7800 Series WINDOW=0 SSH_CONNECTION=127.0.0.1 49178 127.0.0.1 22 INFOPATH=/usr/local/info:/usr/share/info:/usr/info: COMPUTERNAME=M2 HISTFILE=/cygdrive/c/Users/harry/.bash_history _=/cygdrive/c/cygwin/bin/env -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple