Re: [PATCH 6/7] [gdb/testsuite] Use TERM=ansiw in tuiterm for bsd

Tom Tromey
2025-07-23T18:35:36Z

>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:

Tom> So I went looking for an alternative to TERM=ansi on freebsd, and came across
Tom> TERM=ansiw. Using this didn't work out of the box, but with the fixes in
Tom> this series it now does.

Tom> I also briefly looked at TERM=ansis, which is interesting because it's
Tom> available on both linux and freebsd, but ansiw is a better choice for now.

I wonder if we should just give in and switch to xterm.

Tom> proc _have_bw {} {
Tom> + if { [string equal $Term::_TERM "ansiw"] } {
Tom> + return 1
Tom> + }
Tom> return 0

This can be just return [string ... ]

It seems like it could just as easily check $env(TERM) and avoid another
variable as well.

Tom