From patchwork Thu Feb 21 13:23:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Hayward X-Patchwork-Id: 31540 Received: (qmail 93065 invoked by alias); 21 Feb 2019 13:23:50 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 93049 invoked by uid 89); 21 Feb 2019 13:23:49 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=hosts, capable, tui, COLOR X-HELO: EUR01-VE1-obe.outbound.protection.outlook.com Received: from mail-eopbgr140073.outbound.protection.outlook.com (HELO EUR01-VE1-obe.outbound.protection.outlook.com) (40.107.14.73) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 21 Feb 2019 13:23:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bcKPWoK3F+7UtPjh3NDJEotutiU999RVAcec/fuc+9U=; b=A1BE0QFftIq0Yzuw6PZdR137vYJE4h+mnFkMoBODfFzNLE8HLt32K92DdBnT2DVjh60g+X1QRNAmqCaVG8wWh8sSqHRxoOg26kPZYXivWVJytBX+WhqjyhmpTglVDjZLMWNc+gsEnydbG+qIH8r+NJ6unfobCnGUfZDKEO+CQds= Received: from DB6PR0802MB2133.eurprd08.prod.outlook.com (10.172.227.22) by DB6PR0802MB2248.eurprd08.prod.outlook.com (10.172.227.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.19; Thu, 21 Feb 2019 13:23:44 +0000 Received: from DB6PR0802MB2133.eurprd08.prod.outlook.com ([fe80::e974:35a7:c83c:e5b7]) by DB6PR0802MB2133.eurprd08.prod.outlook.com ([fe80::e974:35a7:c83c:e5b7%3]) with mapi id 15.20.1622.020; Thu, 21 Feb 2019 13:23:44 +0000 From: Alan Hayward To: "gdb-patches@sourceware.org" CC: nd , Alan Hayward Subject: [PATCH] Document style behavior in batch mode. Date: Thu, 21 Feb 2019 13:23:44 +0000 Message-ID: <20190221132331.19849-1-alan.hayward@arm.com> authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alan.Hayward@arm.com; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-IsSubscribed: yes Style is disabled when running in batch mode. gdb/ChangeLog: 2019-02-21 Alan Hayward * NEWS: Update style defaults. gdb/doc/ChangeLog: 2019-02-21 Alan Hayward * gdb.texinfo: Update style defaults. --- gdb/NEWS | 2 +- gdb/doc/gdb.texinfo | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gdb/NEWS b/gdb/NEWS index eaef6aa384..8fe961b3f3 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -141,7 +141,7 @@ show tui tab-width NCHARS set style enabled [on|off] show style enabled Enable or disable terminal styling. Styling is enabled by default - on most hosts. + on most hosts, but disabled by default when in batch mode. set style filename foreground COLOR set style filename background COLOR diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 173d18be6f..cea1476a9a 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -24514,8 +24514,9 @@ Show the current pagination mode. @kindex set style @kindex show style @value{GDBN} can style its output on a capable terminal. This is -enabled by default on most systems. Various style settings are -available; and styles can also be disabled entirely. +enabled by default on most systems, but disabled by default when in +batch mode. Various style settings are available; and styles can +also be disabled entirely. @table @code @item set style enabled @samp{on|off}