From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 68B851581D3 for ; Sat, 18 May 2024 14:04:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7233CE2A3C; Sat, 18 May 2024 14:04:42 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 pigeon.gentoo.org (Postfix) with ESMTPS id 564D6E2A3C for ; Sat, 18 May 2024 14:04:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 935DF33BF28 for ; Sat, 18 May 2024 14:04:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C5D691ADC for ; Sat, 18 May 2024 14:04:39 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1716038880.973fe5e1968e4ee6bcffa78b59807eb4f81e5823.sam@gentoo> Subject: [gentoo-commits] proj/gentoo-functions:master commit in: / X-VCS-Repository: proj/gentoo-functions X-VCS-Files: functions.sh X-VCS-Directories: / X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 973fe5e1968e4ee6bcffa78b59807eb4f81e5823 X-VCS-Branch: master Date: Sat, 18 May 2024 14:04:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 75a4aa95-74c6-466e-877d-1f7fd2eeed8e X-Archives-Hash: f314d5e50b7fc23d771e37708b9a6cd6 commit: 973fe5e1968e4ee6bcffa78b59807eb4f81e5823 Author: Kerin Millar plushkava net> AuthorDate: Sat May 18 13:15:36 2024 +0000 Commit: Sam James gentoo org> CommitDate: Sat May 18 13:28:00 2024 +0000 URL: https://gitweb.gentoo.org/proj/gentoo-functions.git/commit/?id=973fe5e1 Reposition the declaration of _has_dumb_terminal() So as to maintain an alphabetical order. Signed-off-by: Kerin Millar plushkava.net> functions.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/functions.sh b/functions.sh index 6301c40..fdba0c1 100644 --- a/functions.sh +++ b/functions.sh @@ -505,14 +505,6 @@ _esetdent() genfun_indent=$(printf "%${1}s" '') } -# -# Determines whether the terminal is a dumb one. -# -_has_dumb_terminal() -{ - ! case ${TERM} in *dumb*) false ;; esac -} - # # Tries to determine whether the terminal supports ECMA-48 SGR color sequences. # @@ -531,6 +523,14 @@ _has_color_terminal() fi } +# +# Determines whether the terminal is a dumb one. +# +_has_dumb_terminal() +{ + ! case ${TERM} in *dumb*) false ;; esac +} + # # Determines whether the first parameter contains any visible characters. #