From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30766 invoked by alias); 8 Feb 2006 17:40:00 -0000 Received: (qmail 30756 invoked by uid 22791); 8 Feb 2006 17:39:59 -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; Wed, 08 Feb 2006 17:39:54 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1F6tIF-0008Dv-52; Wed, 08 Feb 2006 12:39:51 -0500 Date: Wed, 08 Feb 2006 17:40:00 -0000 From: Daniel Jacobowitz To: Andrew STUBBS Cc: Eli Zaretskii , Denis PILAT , gdb-patches@sources.redhat.com, bash-maintainers@gnu.org Subject: Re: [readline-mingw] backspace key and TUI size Message-ID: <20060208173951.GA31572@nevyn.them.org> Mail-Followup-To: Andrew STUBBS , Eli Zaretskii , Denis PILAT , gdb-patches@sources.redhat.com, bash-maintainers@gnu.org References: <43E9A5B1.1030001@st.com> <20060208134335.GA22980@nevyn.them.org> <43EA1655.609@st.com> <20060208161452.GA26965@nevyn.them.org> <43EA201B.5080305@st.com> <20060208165114.GA28698@nevyn.them.org> <43EA2A39.4000107@st.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43EA2A39.4000107@st.com> 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/msg00181.txt.bz2 On Wed, Feb 08, 2006 at 05:28:25PM +0000, Andrew STUBBS wrote: > Eli Zaretskii wrote: > >>Date: Wed, 8 Feb 2006 11:51:14 -0500 > >>From: Daniel Jacobowitz > >>Cc: Denis PILAT , gdb-patches@sources.redhat.com, > >>bash-maintainers@gnu.org > >> > >>I'd like to understand what goes wrong for you and why outputing > >>whatever pdcurses is giving you for backspace doesn't work. > > > >Seconded. Please explain why Backspace doesn't work (if you don't > >know, please debug this on your system and see what you come up with). > >Thanks. > > It does work in MSYS terminals. In DOS/Windows or Cygwin terminals it > moves the cursor right, instead of left, and leaves the deleted > character on the screen. I assume that this curses just doesn't support > those terminals in this respect. Well that's why then. The way a termcap library works is that it describes the capabilities of each individual terminal that it supports; the control sequences it outputs rely on knowing in advance how a particular terminal will respond to various conditions. If the mingw build of pdcurses works in an MSYS terminal and explodes in a DOS console, then the MSYS terminal must implement something different than the DOS console; if the curses library is not aware of the difference, things will break. Please don't adjust readline for this; instead get pdcurses not to report the capability or to report it correctly. -- Daniel Jacobowitz CodeSourcery