From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5885 invoked by alias); 31 Dec 2014 21:12:23 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 5876 invoked by uid 89); 31 Dec 2014 21:12:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f182.google.com Received: from mail-wi0-f182.google.com (HELO mail-wi0-f182.google.com) (209.85.212.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 31 Dec 2014 21:12:20 +0000 Received: by mail-wi0-f182.google.com with SMTP id h11so26004787wiw.9 for ; Wed, 31 Dec 2014 13:12:17 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.194.79.226 with SMTP id m2mr131585150wjx.60.1420060337292; Wed, 31 Dec 2014 13:12:17 -0800 (PST) Received: by 10.194.165.106 with HTTP; Wed, 31 Dec 2014 13:12:17 -0800 (PST) In-Reply-To: <1408577353.2864201.1419971948590.JavaMail.yahoo@jws11162.mail.ir2.yahoo.com> References: <1408577353.2864201.1419971948590.JavaMail.yahoo@jws11162.mail.ir2.yahoo.com> Date: Wed, 31 Dec 2014 21:12:00 -0000 Message-ID: Subject: Re: building gdb with TUI support on Windows From: Ofir Cohen To: Hannes Domani Cc: "gdb@sourceware.org" Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-12/txt/msg00065.txt.bz2 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 wrote: > Ofir Cohen 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.