mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-10-31 16:27:30 +08:00
22 lines
562 B
C++
22 lines
562 B
C++
#include "ftxui/component/radiobox.hpp"
|
|
#include "ftxui/component/screen_interactive.hpp" // for ScreenInteractive
|
|
|
|
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;
|
|
}
|
|
|
|
// Copyright 2020 Arthur Sonzogni. All rights reserved.
|
|
// Use of this source code is governed by the MIT license that can be found in
|
|
// the LICENSE file.
|