From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11097 invoked by alias); 9 May 2007 21:34:17 -0000 Received: (qmail 11089 invoked by uid 22791); 9 May 2007 21:34:17 -0000 X-Spam-Check-By: sourceware.org Received: from hq.tensilica.com (HELO mailapp.tensilica.com) (65.205.227.29) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 09 May 2007 21:34:15 +0000 Received: from localhost ([127.0.0.1]) by mailapp.tensilica.com with esmtp (Exim 4.34) id 1HltnY-0003Cl-2r for gdb-patches@sources.redhat.com; Wed, 09 May 2007 14:34:12 -0700 Received: from mailapp.tensilica.com ([127.0.0.1]) by localhost (mailapp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06676-09 for ; Wed, 9 May 2007 14:34:12 -0700 (PDT) Received: from heron.hq.tensilica.com ([192.168.11.123]) by mailapp.tensilica.com with esmtp (Exim 4.34) id 1HltnX-0003Cg-Pr for gdb-patches@sources.redhat.com; Wed, 09 May 2007 14:34:11 -0700 Received: from [192.168.11.123] (heron.hq.tensilica.com [192.168.11.123]) by heron.hq.tensilica.com (Postfix) with ESMTP id 922235EC3B for ; Wed, 9 May 2007 14:34:11 -0700 (PDT) Message-ID: <46423E53.70803@tensilica.com> Date: Wed, 09 May 2007 21:34:00 -0000 From: Bob Wilson User-Agent: Thunderbird 1.5.0.10 (X11/20070403) MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [PATCH] print message when TUI not configured Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-05/txt/msg00149.txt.bz2 The TUI feature is not supported on platforms without a suitable version of the curses library, but this is not well documented. In the doc patch I've been working on, I added a comment about that. It seems like it would also be good to fail gracefully if someone tries to use the TUI when it is not configured. Here is a simple patch to print a message if someone uses the "-tui" option. It doesn't do anything about TUI commands and key bindings, but I think those are less important. OK? 2007-05-09 Bob Wilson * main.c (captured_main): Recognize -tui option and print an error message when the TUI is not configured.