From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5FF2E3857724; Wed, 7 Jun 2023 07:10:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5FF2E3857724 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1686121829; bh=1sV9wPM9b7ecLJj6VOfFT2bamQQZOF5qc2QLpP2Unbg=; h=From:To:Subject:Date:From; b=k57E4k1pPCuZulirH85MR/KzzfMWSStQVD90zU7YgJPZYHlrJXO5jvtoqBrnBnoCN MqJpTzlmPDWAXv3fHbMr4B9uCciYzheB4SqRalv3MRaD8iZTbdI2t8LUuCGarNkMDW 1gC65XEiT6RiUNTEyibFjWPk3bpwjmRWqNMJwGDE= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug tui/30526] New: [gdb/tui, TERM=ansi] Exiting tui doesn't clear screen Date: Wed, 07 Jun 2023 07:10:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: tui X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30526 Bug ID: 30526 Summary: [gdb/tui, TERM=3Dansi] Exiting tui doesn't clear screen Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: tui Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- Say we run TUI with TERM=3Dansi in an xterm: ... TERM=3Dansi gdb -q -tui -iex "set tui border-kind ascii" ... and press ^L to fix the slightly broken screen. Now, type "echo \n" and press enter until the prompt is at the bottom of the screen. Now type tui disable. The only thing that changed in the screen is that the cursor moved to the s= tart of tui disable. We have in fact left TUI, which we can see by doing ^L whi= ch will clear the entire screen, rather than refresh as it does in TUI. The fact that we see "tui disable" is the TERM=3Dansi version of PR30523. But even if we fix that, there's still no clear sign that we left TUI. I think we should clear all windows, except the cmd window. --=20 You are receiving this mail because: You are on the CC list for the bug.=