From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id EFD7A385842E for ; Mon, 22 May 2023 13:15:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EFD7A385842E 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 imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (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 140B121C7F; Mon, 22 May 2023 13:15:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1684761344; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HUNU1poMKfDwoBi99idgtaP9EwtsxHEu7EFO8I+Sqzs=; b=KfcUA5yBCAcotQvQKqwTo/ZORht5MK3X1VU4k1FxfMvJyJEy2RxQSyoyQGzDXfHLJvpsJR hSGekOo49NiYTzWA8AaVqgC4Gqwe/b1TaOvW1fpVMv7S2HBpVt5ZCoEaxPW+iFt+3m7UIs 5bf70Ji3BrkRkUE0mn1+vQNWB14/GpQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1684761344; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HUNU1poMKfDwoBi99idgtaP9EwtsxHEu7EFO8I+Sqzs=; b=Cj6gLE7oLmFu5O/WpgFJ9ZEaDGTqy+kKhM4HwpUbNAtsYPEhYpt6LwxFbAR14cvS1VclWI bXOPnp2yf4qboNBA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (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 imap2.suse-dmz.suse.de (Postfix) with ESMTPS id F15FE13776; Mon, 22 May 2023 13:15:43 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id uMzEOf9qa2RvdAAAMHmgww (envelope-from ); Mon, 22 May 2023 13:15:43 +0000 From: Tom de Vries To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 0/6] [gdb/tui] Introduce ansi-for-tui Date: Mon, 22 May 2023 15:15:38 +0200 Message-Id: <20230522131545.12291-1-tdevries@suse.de> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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: For TUI testing, we'd like to use an xterm to replay scenario's that are exercised in the testsuite, and vice versa create scenario's on an xterm and be able to reproduce those in the testsuite. In order to ensure identical behaviour, we'd need identical TERM settings. This series: - introduces a new termcap entry ansi-for-tui that can be used with TUI in an xterm, - adds the newline_glitch capability to ansiterm, and - makes the TUI testsuite use ansi-for-tui. Tested by re-running the TUI test-cases (gdb.tui/*.exp and gdb.python/tui*.exp) on x86_64-linux. Tom de Vries (6): [gdb/testsuite] Use TERM=dummy in gdb.tui/tuiterm.exp [gdb/testsuite] Factor out Term::_wrap_cursor [gdb/contrib] Add ansi-for-tui.sh [gdb/testsuite] Make ansi-for-tui available in with_tuiterm [gdb/testsuite] Implement the newline glitch in tuiterm [gdb/testsuite] Use ansi-for-tui in tuiterm gdb/contrib/ansi-for-tui.sh | 66 +++++++++++++++ gdb/testsuite/gdb.tui/tuiterm.exp | 34 +++++++- gdb/testsuite/gdb.tui/wrap-line.exp | 4 +- gdb/testsuite/lib/gdb.exp | 16 ++++ gdb/testsuite/lib/tuiterm.exp | 123 ++++++++++++++++++++++++++-- 5 files changed, 231 insertions(+), 12 deletions(-) create mode 100755 gdb/contrib/ansi-for-tui.sh base-commit: 7b67409b99edca33b76961179286fb43a1714dd2 -- 2.35.3