octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Patch] do not bind \340 key sequence in readline


From: Benjamin Lindner
Subject: Re: [Patch] do not bind \340 key sequence in readline
Date: Tue, 06 Nov 2007 17:18:10 +0100
User-agent: Thunderbird 2.0.0.6 (Windows/20070728)



Michael Goffioul wrote:
Please consider the following patch. This avoids binding \340 key
in readline. This key code corresponds indeed to 'à'. I modified the
readline code I use for MSVC binary package, so it's no problem.
However, this might have an impact on mingw version.

I checked with my local mingw32 build, and yes, this would be an impact
Unsetting the \340 key binding results in the cursor UP/DOWN keys not being functional any more.
Unsetting the "\e[A" binding however has no effect.

I don't know if this is a mingw32-readline specific problem or a cmd.exe specific problem or somewhere else. I have used your readline patch for compiling with mingw32, but I'm currently still at version 2.9.12. Have tehre been updates to your readline patch? (I need to get up-to-date again...)

We can just keep it in the mingw32 build, but this would be one difference then between msvc and mingw

benjamin

Michael.

script/ChangeLog

2007-11-05  Michael Goffioul <address@hidden>

    * startup/inputrc: do not use \340 code in key binding, because
    it corresponds to 'à' key under Windows



Index: scripts/startup/inputrc
===================================================================
RCS file: /cvs/octave/scripts/startup/inputrc,v
retrieving revision 1.2
diff -c -r1.2 inputrc
*** scripts/startup/inputrc     7 Dec 2006 01:17:27 -0000       1.2
--- scripts/startup/inputrc     5 Nov 2007 17:35:56 -0000
***************
*** 10,16 ****
  ##   sequence for the UP arrow.

  "\e[A": history-search-backward
- "\340H": history-search-backward

  ## history-search-forward:
  ##
--- 10,15 ----
***************
*** 20,23 ****
  ##   sequence for the DOWN arrow.

  "\e[B": history-search-forward
- "\340P": history-search-forward
--- 19,21 ----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]