Skip to content

umpf: highlight default choice in lists#59

Merged
michaelolbrich merged 1 commit intopengutronix:masterfrom
benzea:master
Dec 1, 2025
Merged

umpf: highlight default choice in lists#59
michaelolbrich merged 1 commit intopengutronix:masterfrom
benzea:master

Conversation

@benzea
Copy link
Contributor

@benzea benzea commented Jul 31, 2025

When showing a list of options, it is useful to have the default choice highlighted. So push the choices into variables and print them from function when the default choice is known. Then, print the default choice in bold.

I think this is may be a nice touch for the UI.

Copy link
Member

@michaelolbrich michaelolbrich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the idea, but the implementation is not quite correct.

When showing a list of options, it is useful to have the default choice
highlighted. So push the choices into variables and print them from
function when the default choice is known. Then, print the default
choice in bold.

Signed-off-by: Benjamin Berg <benjamin@sipsolutions.net>
Copy link
Member

@michaelolbrich michaelolbrich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now. Thank you for sticking with it.

@michaelolbrich michaelolbrich merged commit 446debc into pengutronix:master Dec 1, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments