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: Hannes Domani <ssbssa at yahoo dot de>
- To: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Tue, 30 Dec 2014 20:39:08 +0000 (UTC)
- 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>
- Reply-to: Hannes Domani <ssbssa at yahoo dot de>
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.