FTXUI/examples/component/radiobox.cpp

21 lines
462 B
C++
Raw Normal View History

2019-01-19 05:41:33 +08:00
#include "ftxui/component/radiobox.hpp"
2020-03-23 05:32:44 +08:00
2019-01-19 05:41:33 +08:00
#include "ftxui/component/component.hpp"
#include "ftxui/component/container.hpp"
#include "ftxui/component/screen_interactive.hpp"
using namespace ftxui;
int main(int argc, const char* argv[]) {
auto screen = ScreenInteractive::TerminalOutput();
RadioBox radiobox;
radiobox.entries = {
L"Use gcc",
L"Use clang",
L"Use emscripten",
L"Use tcc",
};
screen.Loop(&radiobox);
return 0;
}