From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by sourceware.org (Postfix) with ESMTPS id 8509E385842C for ; Fri, 26 May 2023 13:02:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8509E385842C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id B5C2621B3E for ; Fri, 26 May 2023 13:02:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1685106168; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XugMVavaEOCPTcWZH4jo4QwdP7oAmbMlLkmCOYj0uPU=; b=TnTbSu6RqzBNXKRkynvgO5xrdqgqutpsxbzCzfScM+KJjV6lXC6ntt2B6I2WUlKgzdgJyJ n0VsG9iHaywHEoETzqvPxm26CwtNkWglOhvx+1u1Pk3ylVC5NZ4xtJGgCVvwwrYVxNNAcE NdwDfJRYL6oKR5qi+cLXc2PQSou4iWE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1685106168; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XugMVavaEOCPTcWZH4jo4QwdP7oAmbMlLkmCOYj0uPU=; b=SwE0bFNaBPq5do53M4pR4EnylV8f/Qf+CA+KqIGzQUJaiy13hM8pNbkr3vOihLCDLmG+B4 z/nJGYKR6EAqm+Aw== Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id A26BC13684 for ; Fri, 26 May 2023 13:02:48 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id UEunJvitcGRHYAAAGKfGzw (envelope-from ) for ; Fri, 26 May 2023 13:02:48 +0000 From: Tom de Vries To: gdb-patches@sourceware.org Subject: [pushed 2/3] [gdb/testsuite] Add invisible and blinking attributes in tuiterm Date: Fri, 26 May 2023 15:02:59 +0200 Message-Id: <20230526130300.20974-2-tdevries@suse.de> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20230526130300.20974-1-tdevries@suse.de> References: <20230526130300.20974-1-tdevries@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,KAM_SHORT,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: I noticed curses using the invisible and blinking attributes. Add these in tuiterm. Tested on x86_64-linux. --- gdb/testsuite/gdb.tui/tuiterm.exp | 8 ++++++++ gdb/testsuite/lib/tuiterm.exp | 14 ++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/gdb/testsuite/gdb.tui/tuiterm.exp b/gdb/testsuite/gdb.tui/tuiterm.exp index ff0a3ac48ad..bccb7ef445a 100644 --- a/gdb/testsuite/gdb.tui/tuiterm.exp +++ b/gdb/testsuite/gdb.tui/tuiterm.exp @@ -691,6 +691,14 @@ proc test_attrs {} { 2 dim 22 normal } + invisible { + 8 1 + 28 0 + } + blinking { + 5 1 + 25 0 + } } { setup_terminal 8 1 set re "" diff --git a/gdb/testsuite/lib/tuiterm.exp b/gdb/testsuite/lib/tuiterm.exp index 49ce79558c6..90b885d7ab4 100644 --- a/gdb/testsuite/lib/tuiterm.exp +++ b/gdb/testsuite/lib/tuiterm.exp @@ -556,6 +556,8 @@ namespace eval Term { bg default underline 0 reverse 0 + invisible 0 + blinking 0 } } @@ -580,18 +582,30 @@ namespace eval Term { 4 { set _attrs(underline) 1 } + 5 { + set _attrs(blinking) 1 + } 7 { set _attrs(reverse) 1 } + 8 { + set _attrs(invisible) 1 + } 22 { set _attrs(intensity) normal } 24 { set _attrs(underline) 0 } + 25 { + set _attrs(blinking) 0 + } 27 { set _attrs(reverse) 0 } + 28 { + set _attrs(invisible) 0 + } 30 - 31 - 32 - 33 - 34 - 35 - 36 - 37 { set _attrs(fg) $item } -- 2.35.3