public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug tui/30523] New: [gdb/tui] Exiting tui doesn't clear prompt line
@ 2023-06-06 15:11 vries at gcc dot gnu.org
  2023-06-06 19:02 ` [Bug tui/30523] [gdb/tui, TERM=xterm] " vries at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: vries at gcc dot gnu.org @ 2023-06-06 15:11 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30523

            Bug ID: 30523
           Summary: [gdb/tui] Exiting tui doesn't clear prompt line
           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 enter gdb, and type "foo" (indicating cursor with ^):
...
(gdb) foo
         ^
...

Then we enter tui using C-x 1, and we have:
...
(gdb) 
      ^
...

After typing "tui disable" or C-x a to leave the TUI mode, and we have:
...
(gdb) foo
      ^
...

The "foo" string is not part of the readline buffer, if we do ^L it's gone.

It probably shouldn't be there in the first place after exiting TUI.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug tui/30523] [gdb/tui, TERM=xterm] Exiting tui doesn't clear prompt line
  2023-06-06 15:11 [Bug tui/30523] New: [gdb/tui] Exiting tui doesn't clear prompt line vries at gcc dot gnu.org
@ 2023-06-06 19:02 ` vries at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: vries at gcc dot gnu.org @ 2023-06-06 19:02 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30523

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[gdb/tui] Exiting tui       |[gdb/tui, TERM=xterm]
                   |doesn't clear prompt line   |Exiting tui doesn't clear
                   |                            |prompt line

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
Doesn't reproduce with TERM=ansi or TERM=ansi-for-tui.

Probably related to ^[[?1049l and ^[[?1049h, switching between normal and
alternate screen buffer.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-06 19:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-06 15:11 [Bug tui/30523] New: [gdb/tui] Exiting tui doesn't clear prompt line vries at gcc dot gnu.org
2023-06-06 19:02 ` [Bug tui/30523] [gdb/tui, TERM=xterm] " vries at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).