mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-12-16 01:48:56 +08:00
Added a option to set the style of the selection
This commit is contained in:
committed by
ArthurSonzogni
parent
d62dc6e305
commit
cbd28403af
@@ -73,9 +73,14 @@ int main() {
|
||||
});
|
||||
});
|
||||
|
||||
screen.onSelectionModified([&] {
|
||||
selectionChangeCounter++;
|
||||
selection = screen.GetSelectedContent(renderer);
|
||||
screen.setSelectionOptions({
|
||||
.transform = [](Pixel& pixel) {
|
||||
pixel.underlined_double = true;
|
||||
},
|
||||
.on_change = [&] {
|
||||
selectionChangeCounter++;
|
||||
selection = screen.GetSelectedContent(renderer);
|
||||
}
|
||||
});
|
||||
|
||||
screen.Loop(renderer);
|
||||
|
||||
Reference in New Issue
Block a user