examples/dom/border_style.cpp

    //Copyright2020ArthurSonzogni.Allrightsreserved.
    //UseofthissourcecodeisgovernedbytheMITlicensethatcanbefoundin
    //theLICENSEfile.
    #include<ftxui/dom/elements.hpp>//foroperator|,text,Element,Fit,borderDouble,borderHeavy,borderLight,borderRounded,vbox
    #include<ftxui/screen/screen.hpp>//forScreen
    #include<iostream>//forendl,cout,ostream
    #include<memory>//forallocator

    #include"ftxui/dom/node.hpp"//forRender
    #include"ftxui/screen/color.hpp"//forftxui

    intmain(){
    usingnamespaceftxui;

    autodocument=vbox({
    text("borderLight")|borderLight,
    text("borderDashed")|borderDashed,
    text("borderHeavy")|borderHeavy,
    text("borderDouble")|borderDouble,
    text("borderRounded")|borderRounded,
    });

    autoscreen=
    Screen::Create(Dimension::Fit(document),Dimension::Fit(document));
    Render(screen,document);
    screen.Print();
    std::cout<<std::endl;
    }