From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6728 invoked by alias); 31 Dec 2014 16:34:55 -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 6711 invoked by uid 89); 31 Dec 2014 16:34:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout23.012.net.il Received: from mtaout23.012.net.il (HELO mtaout23.012.net.il) (80.179.55.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 31 Dec 2014 16:34:51 +0000 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NHG00C00GBTEH00@a-mtaout23.012.net.il> for gdb@sourceware.org; Wed, 31 Dec 2014 18:34:48 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NHG00CLQGPZDG30@a-mtaout23.012.net.il>; Wed, 31 Dec 2014 18:34:48 +0200 (IST) Date: Wed, 31 Dec 2014 16:34:00 -0000 From: Eli Zaretskii Subject: Re: building gdb with TUI support on Windows In-reply-to: <1408577353.2864201.1419971948590.JavaMail.yahoo@jws11162.mail.ir2.yahoo.com> To: Hannes Domani Cc: gdb@sourceware.org Reply-to: Eli Zaretskii Message-id: <834msbdbhb.fsf@gnu.org> References: <1408577353.2864201.1419971948590.JavaMail.yahoo@jws11162.mail.ir2.yahoo.com> X-IsSubscribed: yes X-SW-Source: 2014-12/txt/msg00064.txt.bz2 > Date: Tue, 30 Dec 2014 20:39:08 +0000 (UTC) > From: Hannes Domani > > 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? > 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".