From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id AI5YHgAZgGB2JwEAgWs5BA (envelope-from ) for ; Wed, 21 Apr 2021 14:22:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id sLngGQAZgGDSBQAAbx9fmQ (envelope-from ) for ; Wed, 21 Apr 2021 12:22:24 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C7864142DF for ; Wed, 21 Apr 2021 14:22:23 +0200 (CEST) Received: from localhost ([::1]:42004 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZBs6-0002nj-Kx for larch@yhetil.org; Wed, 21 Apr 2021 08:22:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48650) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZBro-0002Xn-7t for guix-patches@gnu.org; Wed, 21 Apr 2021 08:22:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45580) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lZBrn-0007Bn-VA for guix-patches@gnu.org; Wed, 21 Apr 2021 08:22:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lZBrn-0005aY-S5 for guix-patches@gnu.org; Wed, 21 Apr 2021 08:22:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47929] [PATCH 5/5] ui: Disable hyperlink support inside screen. Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 21 Apr 2021 12:22:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47929 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47929@debbugs.gnu.org Cc: Mathieu Othacehe Received: via spool by 47929-submit@debbugs.gnu.org id=B47929.161900769621417 (code B ref 47929); Wed, 21 Apr 2021 12:22:03 +0000 Received: (at 47929) by debbugs.gnu.org; 21 Apr 2021 12:21:36 +0000 Received: from localhost ([127.0.0.1]:57122 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZBrL-0005ZI-RG for submit@debbugs.gnu.org; Wed, 21 Apr 2021 08:21:36 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZBrI-0005YK-JL for 47929@debbugs.gnu.org; Wed, 21 Apr 2021 08:21:32 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54767) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZBrD-0006p0-Ec for 47929@debbugs.gnu.org; Wed, 21 Apr 2021 08:21:27 -0400 Received: from [2a01:e0a:19b:d9a0:9576:8bbf:4795:82ee] (port=38154 helo=localhost.localdomain) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lZBrC-0003pa-GI; Wed, 21 Apr 2021 08:21:26 -0400 From: Mathieu Othacehe Date: Wed, 21 Apr 2021 14:21:08 +0200 Message-Id: <20210421122108.2344-5-othacehe@gnu.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210421122108.2344-1-othacehe@gnu.org> References: <20210421122108.2344-1-othacehe@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619007743; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=QN2s8PKp8aeP3bovng4/lNRRQYKKNTfviWD7kwImL1Q=; b=Tl9nV+kcd4ebBD7VwVHYqqFjQwBMcmyVcfHS5IEzXidMjsSOg++N/Mx8JtT9GamG0BL8CO wpIsV7D3wNq8QJ+c5v13TkmByPEY4+5JahifZViEoapNNlStpPrgAd0D9B7/uU6pd8M84M QS9ubbUUOwDJKKog69mYTZ1lTTX/dS1YxKWqEe1zGB89XkkObC8AJLKvwjVzyPamw6ZhM+ ZYFLUL2nAsUEnnjYMv0VJi4Pok2NWNBdPh+UVvMLIbHIxGgvLUwwr8nenTi6RkSDYj+Isr zx48bDzvmd+yGX04IxB6msH29g+Rxaf1zqxz+NfRcBISpLYdzJ/jAsjJIlU0ng== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619007743; a=rsa-sha256; cv=none; b=HDpoCrleuOSst8pdtxWQIHuLwRGgnvFJmWLQgyqt2f27/JyKi+isnqbxG0E9lJy+kN90yw McJiNtjGAZhqSGGkCFynYI3stmabMPY1ifrfXQWvHgQxrlpsHHbWcgXknLvoMQ/yjVK65M nxpc4ARXjm8KxOKshh6h8jePjPBT7T5eLFwv+hiogIZBCr9Oikvd+Inv6Q8aGh7tFkC6gg RtSvGsN9DjLx5higdhpIHcQKYb0MFBHjmkPvwzX8+q8/JL/XPvkAePMOx53F/ZH5QPMrne 79UaiV3zcITyNXTRq/ac5H5nBlVEbW7uosPgv45nXF+2yOZLlfq3i1t5stbZgg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 2.06 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: C7864142DF X-Spam-Score: 2.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: bFF/V5xX8DMc Inside screen, the OSC escape sequence is interpreted but the link is not clickable. * guix/ui.scm (supports-hyperlinks?): Return false if STY is set. --- guix/ui.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/guix/ui.scm b/guix/ui.scm index 7fbd4c63a2..56fbbb3db3 100644 --- a/guix/ui.scm +++ b/guix/ui.scm @@ -1486,7 +1486,8 @@ documented at ;; However, Emacs comint as of 26.3 does not ignore it and instead lets it ;; through, hence the 'INSIDE_EMACS' special case below. (and (isatty?* port) - (not (getenv "INSIDE_EMACS")))) + (not (or (getenv "INSIDE_EMACS") + (getenv "STY"))))) ;screen doesn't support hyperlinks. (define* (file-hyperlink file #:optional (text file)) "Return TEXT with escapes for a hyperlink to FILE." -- 2.31.1