Re: [PATCH 2/2] Allow check-mark to be changed for CLI

Pedro Alves
2025-06-25T10:06:12Z

On 2025-06-24 17:58, Tom Tromey wrote:
> Pedro> To indicate the selected entry from a list, I think a right
> Pedro> arrow, or "👉" (Backhand Index Pointing Right, U+1F449) would
> Pedro> make a lot more sense.
>
> I tried that one just now and at least on my terminal it is wider.
> See the attached screenshot.
>
> Now, we could make "current" take 2 columns. That might be enough to
> solve this in general. But then a bit of space is wasted in the ASCII /
> narrow case.

Column widths don't have to be hardcoded. For example, we compute the width of the "Target Id"
column dynamically. See target_id_col_width in print_thread_info_1. So maybe all we need is to
base the "current" column's width depend on the wcwidth of the character used. Even if we end up
with a narrower character by default, the user can always configure their style to use a wider
one, so it seems to me like we should do that regardless.

I'm undecided myself between backhand and Right Arrow (➡️) or one of the latter's variants. I like backhand
and I think its use is quite widespread for this. OTOH, an arrow might look a bit more "professional".
Not sure, I've not really tried it any of this.

Pedro Alves