From: Eli Zaretskii <eliz@gnu.org>
To: Denis PILAT <denis.pilat@st.com>, Andrew STUBBS <andrew.stubbs@st.com>
Cc: gdb-patches@sources.redhat.com, bash-maintainers@gnu.org
Subject: Re: [readline-mingw] backspace key and TUI size
Date: Fri, 24 Feb 2006 08:36:00 -0000 [thread overview]
Message-ID: <ud5hd9mtw.fsf@gnu.org> (raw)
In-Reply-To: <20060223182145.GA25411@nevyn.them.org> (message from Daniel Jacobowitz on Thu, 23 Feb 2006 13:21:45 -0500)
> Date: Thu, 23 Feb 2006 13:21:45 -0500
> From: Daniel Jacobowitz <drow@false.org>
>
> This gets show width and show height to work on Windows consoles, and
> probably helps the TUI. However, it does not fix paging. I'm not
> planning to fix it, either - I wasted all morning on it. Here's the
> story in case someone else goes down the same rathole someday.
FWIW, paging does work in the DJGPP port, so you may wish to take a
look at how it does that.
> First, GDB disables paging because tgetnum ("li") fails, so it assumes
> we're in a non-console environment.
You will see that the DJGPP port ifdef's around that code in utils.c.
> Next, readline sets cols to 79 instead of 80 because we don't have
> both automatic margins ("am") and ignored newlines beyond the automatic
> margins ("xn"). This causes utils.c to start printing the prompt
> at the last column of the previous line instead of the first column
> of the next line.
This part I don't understand: it doesn't happen with DJGPP, AFAICS,
but I don't see any ifdefs in the code to explain the difference. Can
you post a short test case that exhibits this problem, and show the
code that causes utils.c to print the prompt at the wrong place?
> I think it'll happen on any terminal without "xn", given the current
> logic in gdb and readline, whether or not the terminal has "am".
> But I don't know any other platform using such a terminal at the
> moment
I think DJGPP is one such other platform.
next prev parent reply other threads:[~2006-02-24 8:34 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-08 8:03 Denis PILAT
2006-02-08 13:43 ` Daniel Jacobowitz
2006-02-08 16:03 ` Denis PILAT
2006-02-08 16:05 ` Bob Rossi
2006-02-08 16:14 ` Daniel Jacobowitz
2006-02-08 16:30 ` Chet Ramey
2006-02-08 16:48 ` Andrew STUBBS
2006-02-08 16:51 ` Daniel Jacobowitz
2006-02-08 17:04 ` Chet Ramey
2006-02-08 17:13 ` Daniel Jacobowitz
2006-02-08 17:54 ` Eli Zaretskii
2006-02-08 17:09 ` Eli Zaretskii
2006-02-08 17:30 ` Andrew STUBBS
2006-02-08 17:40 ` Daniel Jacobowitz
2006-02-09 9:36 ` Denis PILAT
2006-02-09 13:49 ` Daniel Jacobowitz
2006-02-10 15:41 ` Denis PILAT
2006-02-10 18:52 ` Eli Zaretskii
2006-02-20 15:36 ` Daniel Jacobowitz
2006-02-23 18:25 ` Daniel Jacobowitz
2006-02-24 8:36 ` Eli Zaretskii [this message]
2006-02-24 18:44 ` Daniel Jacobowitz
2006-02-24 18:48 ` Eli Zaretskii
2006-02-24 19:29 ` Daniel Jacobowitz
2006-02-25 11:35 ` Eli Zaretskii
2006-02-08 17:56 ` Eli Zaretskii
2006-02-08 18:03 ` Daniel Jacobowitz
2006-02-08 16:28 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ud5hd9mtw.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=andrew.stubbs@st.com \
--cc=bash-maintainers@gnu.org \
--cc=denis.pilat@st.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox