[readline-mingw] backspace key and TUI size

Daniel Jacobowitz drow@false.org
Wed Feb 8 17:40:00 GMT 2006


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 <drow@false.org>
> >>Cc: Denis PILAT <denis.pilat@st.com>, 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



More information about the Gdb-patches mailing list