[Bug tui/30388] [gdb/tui, TERM=ansi] first char of prompt in status line

vries at gcc dot gnu.org sourceware-bugzilla@sourceware.org
Thu May 4 07:37:34 GMT 2023


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

--- Comment #7 from Tom de Vries <vries at gcc dot gnu.org> ---
I'm close to giving up on this, I've played around quite a bit changing how the
status line is rendered, but the problem keeps reoccuring in different forms
and scenarios.

I'm starting to suspect that we're running into the problem that setting TERM
to something changes the capabilities reported to the application, but not the
behaviour of the terminal emulator itself.  More specifically with xterm we
have the am and xn capabilities set, with ansi just am, but the terminal will
behave the same regardless.

I've a filed a new PR30419 - [gdb/tui] Support tui safe-mode on/off, to work
around this in a more generic fashion, with the idea of avoiding to run into
this
by hiding the last column, as readline does.

But it's possible that we have to classify this PR as not-a-bug: If you lie to
your application about the capabilities or your terminal, you may run into
trouble.

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


More information about the Gdb-prs mailing list