From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15658 invoked by alias); 25 Feb 2006 11:28:50 -0000 Received: (qmail 15650 invoked by uid 22791); 25 Feb 2006 11:28:48 -0000 X-Spam-Check-By: sourceware.org Received: from gandalf.inter.net.il (HELO gandalf.inter.net.il) (192.114.186.17) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 25 Feb 2006 11:28:47 +0000 Received: from nitzan.inter.net.il (nitzan.inter.net.il [192.114.186.20]) by gandalf.inter.net.il (MOS 3.7.1-GA) with ESMTP id HZC06697; Sat, 25 Feb 2006 13:28:32 +0200 (IST) Received: from HOME-C4E4A596F7 (IGLD-84-228-215-175.inter.net.il [84.228.215.175]) by nitzan.inter.net.il (MOS 3.7.3-GA) with ESMTP id CTX76748 (AUTH halo1); Sat, 25 Feb 2006 13:28:27 +0200 (IST) Date: Sat, 25 Feb 2006 11:35:00 -0000 Message-Id: From: Eli Zaretskii To: gdb-patches@sources.redhat.com, bash-maintainers@gnu.org In-reply-to: <20060224184852.GA524@nevyn.them.org> (message from Daniel Jacobowitz on Fri, 24 Feb 2006 13:48:52 -0500) Subject: Re: [readline-mingw] backspace key and TUI size Reply-to: Eli Zaretskii 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> <20060224184852.GA524@nevyn.them.org> 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/msg00473.txt.bz2 > Date: Fri, 24 Feb 2006 13:48:52 -0500 > From: Daniel Jacobowitz > 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).