Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 From: "Hannu E K Nevalainen (garbage mail)" To: Subject: RE: Customizing rxvt Date: Sat, 26 Apr 2003 23:26:12 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0001_01C30C4B.396C8680" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Importance: Normal In-Reply-To: ------=_NextPart_000_0001_01C30C4B.396C8680 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit > From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf > Of Igor Pechtchanski > FYI, the console and rxvt have different key sequences for the function > keys. You can see the exact key sequence by pressing Ctrl-V and the key > (that'll escape the initial Ctrl-[). Another way is by running "od -c", > pressing the key, then two Ctrl-D's. > Igor Finding out what the key causes on "stdin" is no problem... I like "od" a lot ;-) The problem is making bash/console and/or bash/rxvt do what I want on certain keypresses, a' la keybindings for bash (in ~/.profile). This time it was about the "Home" and "End" keys, I wanted them to work as CTRL-A and CTRL-E do in both console and rxvt. I *had* this in the console, but *not* in rxvt. $ info readline $ info bash made me realise what it was all about... => one minute ago I made it work in both rxvt and console with small changes in my .inputrc ~/{.inputrc,.profile,.Xdefaults} enclosed for completeness... Dunno if they match everybody's mind of usefulness, but they do allow &dieris and &ring characters; and DEL, BS, HOME and END keys work. /Hannu E K Nevalainen, Mariefred, Sweden --END OF MESSAGE-- ------=_NextPart_000_0001_01C30C4B.396C8680 Content-Type: application/octet-stream; name=".inputrc" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=".inputrc" #=0A= # INPUTRC - Preferences by=0A= # Hannu E K Nevalainen=0A= #=0A= =0A= # DON'T EVER *BEEP* AT ME!=0A= set bell-style visible=0A= =0A= # Eight-bit transparency please,=0A= # we're *way* beyond anything else=0A= set convert-meta off=0A= set input-meta on=0A= set output-meta on=0A= =0A= # The least bad...=0A= set keymap emacs=0A= =0A= # =0A= set enable-keypad on=0A= =0A= =0A= #--------------------------=0A= # Name completion/expansion=0A= #=0A= =0A= # set show-all-if-ambiguous on=0A= =0A= # User homedir name expansion=0A= set expand-tilde off=0A= =0A= # Append / on ALL dirnames at completion=0A= set mark-directories on=0A= set mark-symlinked-directories on=0A= =0A= # Match on ALL files=0A= set match-hidden-files on=0A= =0A= =0A= #---------------=0A= # Keybindings...=0A= #=0A= =0A= # DEL key in bash=0A= "\e[3~": delete-char=0A= =0A= #insert-key=0A= "\M-[2~": paste-from-clipboard # Insert=0A= =0A= ------=_NextPart_000_0001_01C30C4B.396C8680 Content-Type: application/octet-stream; name=".Xdefaults" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=".Xdefaults" =0A= Rxvt.background: black=0A= Rxvt.foreground: grey=0A= Rxvt.visualBell: true=0A= =0A= Rxvt.keysym.7e37: ^A=0A= Rxvt.keysym.7e38: ^E=0A= =0A= Rxvt.meta8: true=0A= XTerm.saveLines: 6000=0A= XTerm.scrollBar_right: true=0A= XTerm.scrollColor: #c5c0a5=0A= =0A= XTerm.scrollTtyOutput: false=0A= XTerm.scrollTtyKeypress: true=0A= =0A= # Allow four columns of ls output=0A= # ...nicely positioned on 1024x768 pixels=0A= XTerm.geometry: 112x56+20+20=0A= XTerm.font: Lucida Console-12=0A= =0A= # Peculiar char spacing=0A= # XTerm.font: Verdana-13=0A= ------=_NextPart_000_0001_01C30C4B.396C8680 Content-Type: application/octet-stream; name=".inputrc" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=".inputrc" #=0A= # INPUTRC - Preferences by=0A= # Hannu E K Nevalainen=0A= #=0A= =0A= # DON'T EVER *BEEP* AT ME!=0A= set bell-style visible=0A= =0A= # Eight-bit transparency please,=0A= # we're *way* beyond anything else=0A= set convert-meta off=0A= set input-meta on=0A= set output-meta on=0A= =0A= # The least bad...=0A= set keymap emacs=0A= =0A= # =0A= set enable-keypad on=0A= =0A= =0A= #--------------------------=0A= # Name completion/expansion=0A= #=0A= =0A= # set show-all-if-ambiguous on=0A= =0A= # User homedir name expansion=0A= set expand-tilde off=0A= =0A= # Append / on ALL dirnames at completion=0A= set mark-directories on=0A= set mark-symlinked-directories on=0A= =0A= # Match on ALL files=0A= set match-hidden-files on=0A= =0A= =0A= #---------------=0A= # Keybindings...=0A= #=0A= =0A= # DEL key in bash=0A= "\e[3~": delete-char=0A= =0A= #insert-key=0A= "\M-[2~": paste-from-clipboard # Insert=0A= =0A= # Home in rxvt=0A= "\e[7~": beginning-of-line=0A= # End in rxvt=0A= "\e[8~": end-of-line=0A= ------=_NextPart_000_0001_01C30C4B.396C8680 Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ ------=_NextPart_000_0001_01C30C4B.396C8680--