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
> Date: Fri, 24 Feb 2006 13:48:52 -0500
> From: Daniel Jacobowitz <drow@false.org>
> Cc: gdb-patches@sources.redhat.com, bash-maintainers@gnu.org
>
> > > This happens because you bypass rl_get_screen_size. Therefore you
> > > use the "real" screen size, rather than readline's adjusted view of it.
> >
> > Right, thanks. So all you need to do is prevent readline from
> > decrementing _rl_screenwidth in the Windows case.
>
> No, I'm pretty sure readline would misbehave if I did that - it checks
> for am && xn capabilities, and my experiments show that the Windows
> console does not have xn.
If readline does misbehave (I'm not sure it will), then you could do
in utils.c:init_page_info something similar to what DJGPP does (except
that it should be possible to reuse the results of readline's
initialization instead of calling the console primitives again).