Skip to content

umpf: highlight default choice in lists - #59

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

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

Conversation

@benzea

@benzea benzea commented Jul 31, 2025

Copy link
Copy Markdown
Contributor

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.

@michaelolbrich michaelolbrich left a comment

Copy link
Copy Markdown
Member

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.

Comment thread umpf Outdated
Comment thread umpf Outdated
Comment thread umpf
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>

@michaelolbrich michaelolbrich left a comment

Copy link
Copy Markdown
Member

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