mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-29 22:55:51 +08:00
20 lines
461 B
C++
20 lines
461 B
C++
|
#include "ftxui/component/radiobox.hpp"
|
||
|
#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;
|
||
|
}
|