From patchwork Mon Jul 6 03:41:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1323295 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4B0Wft2lx8z9sRN for ; Mon, 6 Jul 2020 13:45:10 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=RuYsUHM9; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4B0Wfs14b7zDqg5 for ; Mon, 6 Jul 2020 13:45:09 +1000 (AEST) X-Original-To: patchwork@lists.ozlabs.org Delivered-To: patchwork@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=chromium.org (client-ip=2607:f8b0:4864:20::d34; helo=mail-io1-xd34.google.com; envelope-from=sjg@chromium.org; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=RuYsUHM9; dkim-atps=neutral Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4B0Wbd2PrKzDqN1 for ; Mon, 6 Jul 2020 13:42:21 +1000 (AEST) Received: by mail-io1-xd34.google.com with SMTP id c16so37882943ioi.9 for ; Sun, 05 Jul 2020 20:42:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=uPG2vAnf2J161yE7E6aVta2hbj27PrmY3rHvGdJqqDw=; b=RuYsUHM9laSIYCKJ3Rx6WCDYDwp2MZAmAWKU+9sZetbkdkiAiH3J2anzZM2eoVYOse b7UUQ26j1nacZI+8KD5BNHdiDZJcHeF1x/xuoh4dzBjFByY1UGjEwjvRKjIUmVVnsEkO 4lm3/PGl8BJbViL/MZHGpRbTlioMLrckJ4aqo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=uPG2vAnf2J161yE7E6aVta2hbj27PrmY3rHvGdJqqDw=; b=FAJky9a0gxyadBAQ+YAN8L2MQapHpzAtyl9WNh3SLAY54Rwdc9OyEQrGTRY8sMtppl Po4VYSH4cEMjC0mgQVP/VGz1e1HESBSrah8MRdyHmEumE79trkccdSNni11Wm/Qh+S3j jv8c+4UouNprzBoPGK/0B6aBMhptmqWEVEVqf+STk/p9pvKlExQHiWh19OzWMdNxfdQD 9Bm4PAfF5+/AKm9yXrbYsiVRqlY18T65nuJMW+0HsaL/sP17obHEUWCGoc25WsgEfwLO 2Jspjww8ZNQdgDcDVOCk8vDLLhtXeexrN3yEGjmdswmYNsZmfR6vHVwk/kbnOX09BFve 6BNw== X-Gm-Message-State: AOAM531z5ipfAEvGu+SvOrPVrkCz6BtjHl9QELX4CBkyvYr/Ebngn3H1 KBZA9itp7F1Q6McOn/jhkgxRBg== X-Google-Smtp-Source: ABdhPJw+QvYMhbybvUDD81srgK1w28+cVJgiE2xwuR6UrgHdAOYoXtBdHF8PMTXDvaM74LTvVq3lMA== X-Received: by 2002:a6b:acc7:: with SMTP id v190mr23746256ioe.53.1594006938785; Sun, 05 Jul 2020 20:42:18 -0700 (PDT) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id r15sm1664958ilh.86.2020.07.05.20.42.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jul 2020 20:42:18 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Subject: [RFC PATCH 09/16] patman: Allow disabling 'bright' mode with Print output Date: Sun, 5 Jul 2020 21:41:56 -0600 Message-Id: <20200706034203.2171077-10-sjg@chromium.org> X-Mailer: git-send-email 2.27.0.212.ge8ba1cc988-goog In-Reply-To: <20200706034203.2171077-1-sjg@chromium.org> References: <20200706034203.2171077-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Patchwork development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tom Rini , Simon Glass , patchwork@lists.ozlabs.org Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Patchwork" At present all text is marked bright, which makes it stand out on the terminal. Add a way to disable that, as is done with the Color class. Signed-off-by: Simon Glass Signed-off-by: Simon Glass --- tools/patman/terminal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/patman/terminal.py b/tools/patman/terminal.py index c709438bdc..60dbce3ce1 100644 --- a/tools/patman/terminal.py +++ b/tools/patman/terminal.py @@ -122,7 +122,7 @@ def TrimAsciiLen(text, size): return out -def Print(text='', newline=True, colour=None, limit_to_line=False): +def Print(text='', newline=True, colour=None, limit_to_line=False, bright=True): """Handle a line of output to the terminal. In test mode this is recorded in a list. Otherwise it is output to the @@ -140,7 +140,7 @@ def Print(text='', newline=True, colour=None, limit_to_line=False): else: if colour: col = Color() - text = col.Color(colour, text) + text = col.Color(colour, text, bright=bright) if newline: print(text) last_print_len = None