This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Add handling of VK_HOME, VK_END, VK_DELETE and VK_INSERT for mingw hosts


> From: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
> Date: Mon, 10 Dec 2012 15:11:36 +0100
> 
>   The patch below adds support 
> for Home, End, Insert and Delete keys for mingw hosts.
>   It works both for mingw32 and mingw64 native builds.
> 
>   I also added some description of the bounds added.
> 
>   The code that handles console input in gdb/ser-mingw.c
> has the 8 keys handled after my patch plus 
> VK_PRIOR and VK_NEXT, which correspond to PageUp and PageDown keys...
> Any ideas what readline translation would be useful for those?

I think, instead of extending readline this way, we should move to
building a MinGW GDB with the ported ncurses.  Ncurses already
supports all these keys, so readline won't need any MinGW specific
hacks anymore.

You can get a MinGW build of ncurses (and also Readline 6.2 built with
ncurses) here:

  http://sourceforge.net/projects/ezwinports/files/?source=navbar

I just tried in dgawk (a Gawk debugger) linked against these two, and
Home and End already work there.  I swear I didn't change anything in
Readline for this to work.

I didn't yet have time to try configuring GDB with that readline and
ncurses, but I think doing that would be a step in the right
direction, and we can then get rid of windows-termcap.c as a bonus.
If you have time trying that, please do.

Having said all that, please don't take this as an objection to the
patch.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]