This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [readline-mingw] backspace key and TUI size
On Wed, Feb 08, 2006 at 07:56:17PM +0200, Eli Zaretskii wrote:
> > Date: Wed, 8 Feb 2006 11:14:52 -0500
> > From: Daniel Jacobowitz <drow@false.org>
> > Cc: gdb-patches@sources.redhat.com, bash-maintainers@gnu.org
> >
> > On Wed, Feb 08, 2006 at 05:03:33PM +0100, Denis PILAT wrote:
> > > Our host is i686-pc-mingw32, gdb is compiled under cygwin with
> > > "-mno-cygwin" flag to avoid cygwin dependencies.
> > > We also use pdcurses library since ncurse is not available on windows.
> > > I think that's why you don't see the problem. With this patch, I'm not
> > > using the tputs() function anymore on Windows, as it was not used for MSDOS.
> >
> > Ah - we (CodeSourcery) don't use a curses library at all; just the
> > standard Windows and MinGW DLLs. See win32-termcap.c.
>
> But win32-termcap.c is not a general solution for readline, it's
> private to GDB, right? SHouldn't this problem be solved in readline
> rather than in GDB (and in every other application that uses
> readline)?
I don't remember the reasoning, but this was discussed before, and
the current solution was preferred. Either you give readline a termcap
library, or you supply stubs. It sounds like there is a termcap
library we could make use of on Windows, but there isn't one
standard with the OS, and the one there is seems to have some
problems; I'm all for leaving alone one of the bits of this whole
mess which works OK...
--
Daniel Jacobowitz
CodeSourcery