[readline-mingw] backspace key and TUI size

Eli Zaretskii eliz@gnu.org
Sat Feb 25 11:35:00 GMT 2006


> 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).



More information about the Gdb-patches mailing list