examples/component/radiobox.cpp

    //Copyright2020ArthurSonzogni.Allrightsreserved.
    //UseofthissourcecodeisgovernedbytheMITlicensethatcanbefoundin
    //theLICENSEfile.
    #include<string>//forstring,allocator,basic_string
    #include<vector>//forvector

    #include"ftxui/component/captured_mouse.hpp"//forftxui
    #include"ftxui/component/component.hpp"//forRadiobox
    #include"ftxui/component/screen_interactive.hpp"//forScreenInteractive

    usingnamespaceftxui;

    intmain(){
    std::vector<std::string>radiobox_list={
    "Usegcc",
    "Useclang",
    "Useemscripten",
    "Usetcc",
    };
    intselected=0;

    autoscreen=ScreenInteractive::TerminalOutput();
    screen.Loop(Radiobox(&radiobox_list,&selected));
    return0;
    }