examples/component/slider.cpp

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

    usingnamespaceftxui;

    intmain(){
    autoscreen=ScreenInteractive::TerminalOutput();
    intvalue=50;
    autoslider=Slider("Value:",&value,0,100,1);
    screen.Loop(slider);
    }

    //Copyright2020ArthurSonzogni.Allrightsreserved.
    //UseofthissourcecodeisgovernedbytheMITlicensethatcanbefoundin
    //theLICENSEfile.