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: [readline-mingw] backspace key and TUI size


On Fri, Feb 24, 2006 at 08:44:49PM +0200, Eli Zaretskii wrote:
> > Date: Fri, 24 Feb 2006 09:01:45 -0500
> > From: Daniel Jacobowitz <drow@false.org>
> > Cc: Denis PILAT <denis.pilat@st.com>, Andrew STUBBS <andrew.stubbs@st.com>,
> > 	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.  I'm not sure what in readline would go
wrong, though.

-- 
Daniel Jacobowitz
CodeSourcery


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