From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23722 invoked by alias); 30 Dec 2014 20:39:17 -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 23710 invoked by uid 89); 30 Dec 2014 20:39:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.0 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: nm17-vm4.bullet.mail.ir2.yahoo.com Received: from nm17-vm4.bullet.mail.ir2.yahoo.com (HELO nm17-vm4.bullet.mail.ir2.yahoo.com) (212.82.96.219) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 30 Dec 2014 20:39:12 +0000 Received: from [212.82.98.56] by nm17.bullet.mail.ir2.yahoo.com with NNFMP; 30 Dec 2014 20:39:09 -0000 Received: from [212.82.98.85] by tm9.bullet.mail.ir2.yahoo.com with NNFMP; 30 Dec 2014 20:39:09 -0000 Received: from [127.0.0.1] by omp1022.mail.ir2.yahoo.com with NNFMP; 30 Dec 2014 20:39:09 -0000 Received: by 212.82.98.116; Tue, 30 Dec 2014 20:39:09 +0000 Date: Tue, 30 Dec 2014 20:39:00 -0000 From: Hannes Domani Reply-To: Hannes Domani To: "gdb@sourceware.org" Message-ID: <1408577353.2864201.1419971948590.JavaMail.yahoo@jws11162.mail.ir2.yahoo.com> In-Reply-To: References: Subject: Re: building gdb with TUI support on Windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-12/txt/msg00063.txt.bz2 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.