From: Denis PILAT <denis.pilat@st.com>
To: bash-maintainers@gnu.org, gdb-patches <gdb-patches@sourceware.org>
Subject: [readline] TUI size computation for mingw32 hosts
Date: Thu, 28 Sep 2006 13:13:00 -0000 [thread overview]
Message-ID: <451BCA71.5040109@st.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 390 bytes --]
Attached is a patch that fix a problem of calculating console window size
when gdb is hosted on windows.
I already fixed this problem in gdb 6.4 version, that was integrated into
readline (cf
http://sources.redhat.com/ml/gdb-patches/2006-02/msg00245.html)
, but the readline I got from the 6.5 version cancels the modification
with some new
code that overwrote variables I used.
Denis
[-- Attachment #2: terminal.c.patch --]
[-- Type: text/plain, Size: 641 bytes --]
2006-09-28 Denis Pilat <denis.pilat@st.com>
* readline/terminal.c (_rl_get_screen_size): use wr and wc variable to store
window size.
Index: terminal.c
===================================================================
--- terminal.c (revision 527)
+++ terminal.c (working copy)
@@ -226,8 +226,8 @@ _rl_get_screen_size (tty, ignore_env)
CONSOLE_SCREEN_BUFFER_INFO scr;
if (GetConsoleScreenBufferInfo (hConOut, &scr))
{
- _rl_screenwidth = scr.dwSize.X;
- _rl_screenheight = scr.srWindow.Bottom - scr.srWindow.Top + 1;
+ wc = scr.dwSize.X;
+ wr = scr.srWindow.Bottom - scr.srWindow.Top + 1;
}
}
#endif
next reply other threads:[~2006-09-28 13:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-28 13:13 Denis PILAT [this message]
2006-10-05 22:29 ` Daniel Jacobowitz
2006-10-06 7:13 ` Denis PILAT
2006-11-10 20:20 ` Daniel Jacobowitz
2006-11-10 20:37 ` Chet Ramey
2006-11-10 20:40 ` Daniel Jacobowitz
2006-11-13 8:03 ` Denis PILAT
2006-11-13 9:41 ` Frederic RISS
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=451BCA71.5040109@st.com \
--to=denis.pilat@st.com \
--cc=bash-maintainers@gnu.org \
--cc=gdb-patches@sourceware.org \
/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