use underline instead of color for default choice
This commit is contained in:
parent
d219654387
commit
d4e7587686
1 changed files with 1 additions and 2 deletions
|
|
@ -215,8 +215,7 @@ def commit_line(end: str = '\r\n') -> None:
|
|||
|
||||
for letter, choice in self.choices.items():
|
||||
text = choice.text[:choice.idx]
|
||||
color = choice.color or ('yellow' if letter == self.response_on_accept else 'green')
|
||||
text += styled(choice.text[choice.idx], fg=color)
|
||||
text += styled(choice.text[choice.idx], fg=choice.color or 'green', underline='straight' if letter == self.response_on_accept else None)
|
||||
text += choice.text[choice.idx + 1:]
|
||||
text += ' '
|
||||
sz = wcswidth(text)
|
||||
|
|
|
|||
Loading…
Reference in a new issue