From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13453 invoked by alias); 24 Feb 2006 18:48:57 -0000 Received: (qmail 13440 invoked by uid 22791); 24 Feb 2006 18:48:56 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Fri, 24 Feb 2006 18:48:55 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FChzo-0000BS-Bp; Fri, 24 Feb 2006 13:48:52 -0500 Date: Fri, 24 Feb 2006 19:29:00 -0000 From: Daniel Jacobowitz To: Eli Zaretskii Cc: gdb-patches@sources.redhat.com, bash-maintainers@gnu.org Subject: Re: [readline-mingw] backspace key and TUI size Message-ID: <20060224184852.GA524@nevyn.them.org> Mail-Followup-To: Eli Zaretskii , gdb-patches@sources.redhat.com, bash-maintainers@gnu.org References: <43EA2A39.4000107@st.com> <20060208173951.GA31572@nevyn.them.org> <43EB0CF9.1080406@st.com> <20060209134942.GA23253@nevyn.them.org> <43ECB429.6070003@st.com> <20060220153647.GA16058@nevyn.them.org> <20060223182145.GA25411@nevyn.them.org> <20060224140144.GA24232@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-02/txt/msg00464.txt.bz2 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 > > Cc: Denis PILAT , Andrew STUBBS , > > 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