dankamongmen / notcurses

blingful character graphics/TUI library. definitely not curses.
https://nick-black.com/dankwiki/index.php/Notcurses
Other
3.57k stars 112 forks source link

How do I set one of the lines of text to be highlighted? #2722

Closed SiyerBOBO closed 1 year ago

SiyerBOBO commented 1 year ago

In a multi line text printing task, should I highlight a particular line? (I am trying to customize a radio and need to highlight one of the rows, but I couldn't find a suitable method, which is very painful)

dankamongmen commented 1 year ago

can you show me some sample code so i understand better what you're trying to do?

SiyerBOBO commented 1 year ago

emmmm, I understand that your project includes single and multiple choices, but frankly speaking, the layout is too unacceptable (the choice and description achieve a strange centralization of the axis), fortunately, I have found a way yesterday, using the ncplane_stain method can finally achieve the following effect. 2023-08-03_09-15-26

dankamongmen commented 1 year ago

wonderful, i'm glad it worked out for you!