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 6820D3858D20 for ; Wed, 31 May 2023 14:19:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6820D3858D20 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 DCE5E21902; Wed, 31 May 2023 14:19:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1685542787; 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: in-reply-to:in-reply-to:references:references; bh=/SIhEW2ECBVY0kn/wmYyvqdAxBRqd1MRpAZHUrDW4u8=; b=cKdt75b+wwcTMKUUE+T+KnqDO03iUCwsRbr4K5DAuPONszlVdSayTNiwDv625dVMjnU8S7 VD3bB0F7DP24U/JoCLPR7+Xqm4zhsktZXjl5hETYT9WYwKaObge1+9pLNfzl+sSg87/7Sc kBartItUjq23gtvOIxyZ9UbY/+ZuXLY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1685542787; 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: in-reply-to:in-reply-to:references:references; bh=/SIhEW2ECBVY0kn/wmYyvqdAxBRqd1MRpAZHUrDW4u8=; b=nUualkZLS5cUW2QC/hU7rUW1x/sfmDnHsEfi65s+1Dv5QsOXNiArNb5DRElNG5QLX5xQVo aTibard+d4q5ZHAQ== 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 C04F7138E8; Wed, 31 May 2023 14:19:47 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id Pra0LYNXd2SQJAAAMHmgww (envelope-from ); Wed, 31 May 2023 14:19:47 +0000 Message-ID: Date: Wed, 31 May 2023 16:19:43 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 1/3] [gdb/tui] Keep inferior output in cmd window with ^L Content-Language: en-US To: Bruno Larsen , gdb-patches@sourceware.org Cc: Tom Tromey References: <20230530105324.23089-1-tdevries@suse.de> <20230530105324.23089-2-tdevries@suse.de> <335f3833-a4ac-e85a-63ac-5212931cc206@redhat.com> From: Tom de Vries In-Reply-To: <335f3833-a4ac-e85a-63ac-5212931cc206@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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: On 5/31/23 15:35, Bruno Larsen wrote: > I can confirm that this fixes the issue you mentioned when the terminal > scrolls. The problem is that now, if the output doesn't cause the screen > to scroll, it doesn't show up on screen at all. Is it possible that you're talking about a pre-existing issue? That is, we have: ... (gdb) next ... and after we have very, very briefly: ... (gdb) next hello ... before the prompt overwrites it: ... (gdb) next (gdb) ... I get this behaviour with and without the patch series. AFAIU, the only way to deal with this (that doesn't go all the way into introducing pseudo-terminals) is by introducing a separate cmd and output window in TUI. Alternatively, we can move the prompt to the bottom of the command window, I've spent a day or so trying to make that work, but abandoned that. If this is not the behaviour you're talking about, please describe a way of reproducing what you observe. Anyway, another way of showing the effect of the patch series in the no-scrolling-case is to add an extra hello to the test-case, and do "next 2". Without the patch series we have: ... (gdb) next 2 (gdb) hello ... and after ^L just: ... (gdb) next 2 (gdb) ... With the patch series the same: ... (gdb) n 2 (gdb) hello ... and the same after ^L. Thanks, - Tom