From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28502 invoked by alias); 1 Jan 2015 12:28:11 -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 28488 invoked by uid 89); 1 Jan 2015 12:28:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: nm18-vm5.bullet.mail.ir2.yahoo.com Received: from nm18-vm5.bullet.mail.ir2.yahoo.com (HELO nm18-vm5.bullet.mail.ir2.yahoo.com) (212.82.96.229) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 01 Jan 2015 12:28:09 +0000 Received: from [212.82.98.55] by nm18.bullet.mail.ir2.yahoo.com with NNFMP; 01 Jan 2015 12:28:05 -0000 Received: from [212.82.98.82] by tm8.bullet.mail.ir2.yahoo.com with NNFMP; 01 Jan 2015 12:28:05 -0000 Received: from [127.0.0.1] by omp1019.mail.ir2.yahoo.com with NNFMP; 01 Jan 2015 12:28:05 -0000 Received: by 217.12.9.8; Thu, 01 Jan 2015 12:28:05 +0000 Date: Thu, 01 Jan 2015 12:28:00 -0000 From: Hannes Domani Reply-To: Hannes Domani To: "gdb@sourceware.org" Message-ID: <752802600.3289238.1420115247923.JavaMail.yahoo@jws11165.mail.ir2.yahoo.com> In-Reply-To: <834msbdbhb.fsf@gnu.org> References: <834msbdbhb.fsf@gnu.org> 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: 2015-01/txt/msg00000.txt.bz2 Eli Zaretskii schrieb am 17:34 Mittwoch, 31.Dezember 2014: > > 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. > > Sorry, I'm missing something here. AFAIK, "gdb -tui" doesn't call > 'getch', it calls 'wgetch'. Are you saying that when keypad is > disabled, GDB (or readline) somehow _expect_ to see escape sequences? > If not, I don't see why would the curses library need to start sending > escape sequences in that mode, it could simply continue sending single > keys, as it does in the keypad mode. What am I missing? Isn't that the whole point of the keypad option? At least that's how I understood this documentation: http://linux.die.net/man/3/keypad > > 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. > > In the normal mode, Ctrl-L invokes a readline function, which probably > does nothing, because the curses library probably defines a null > sequence for "clear page". Yes, that's what I found as well.