This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: building gdb with TUI support on Windows
- From: Ofir Cohen <ofircohenn at gmail dot com>
- To: Hannes Domani <ssbssa at yahoo dot de>
- Cc: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Wed, 31 Dec 2014 23:12:17 +0200
- Subject: Re: building gdb with TUI support on Windows
- Authentication-results: sourceware.org; auth=none
- References: <CAHOBVAexTx8HHVR8rOTvCjTWt9za_USKBDw7WY-xgJNgVw0dfg at mail dot gmail dot com> <1408577353 dot 2864201 dot 1419971948590 dot JavaMail dot yahoo at jws11162 dot mail dot ir2 dot yahoo dot com>
Hi Hannes,
> In TUI mode CTRL+L redraws the screen.
> Should it clear the screen in normal mode? I don't really know.
> If you mean that, I can look into it.
That's definitely not critical, I'm more interested in getting "Ctrl +
Arrow Left/Right"
keys combination, work.
In DOS, "Ctrl + Arrow-Left" skips an entire word (like Alt+B/F on bash).
The key sequence of: Esc + b, or Esc + f, seems to accomplish that in gdb.
Do you have any idea how to make Ctrl+Left/Right to behave like Esc+b/f?
Do I need to intercept these control codes / keys in curses?
Thanks again!
- Ofir
On 30 December 2014 at 22:39, Hannes Domani <ssbssa@yahoo.de> wrote:
> Ofir Cohen <ofircohenn@gmail.com> schrieb am 21:11 Dienstag, 30.Dezember 2014:
>> Sorry for the ignorance, but what does this keypad mode mean and what
>> is its role?
>> Moreover, is this default behavior intended?
>> (as both PDCurses and true libncurses fail, each in its own (unique?) way).
>
> For special keys, getch() has to be called multiple times and it returns
> part of the an escape sequence each call (e.g. 0xe0 + 'K' for left arrow).
>
> When keypad is enabled, wgetch() returns a single integer (e.g. KEY_LEFT).
> When disabled, it should return the escape sequence as getch() does.
>
> pdcurses is missing this, mayge the developer didn't see the usefulness.
>
> I found the information about wgetch/keypad here:
> http://linux.die.net/man/3/wgetch
>
>> Bonus question: in your opinion, is screen clear possible on Windows? (CTRL+L)
>
> In TUI mode CTRL+L redraws the screen.
> Should it clear the screen in normal mode? I don't really know.
> If you mean that, I can look into it.