FTXUI 6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
terminal_input_parser_test_fuzzer.cpp
Go to the documentation of this file.
1// Copyright 2021 Arthur Sonzogni. 版權所有。
2// 本源代碼的使用受 MIT 許可證的約束,該許可證可在
3// LICENSE 文件中找到。
4#include <cstddef>
7
8extern "C" int LLVMFuzzerTestOneInput(const char* data, size_t size) {
9 using namespace ftxui;
10 auto parser = TerminalInputParser([&](Event) {});
11 for (size_t i = 0; i < size; ++i) {
12 parser.Add(data[i]);
13 }
14
15 return 0; // 非零返回值保留供將來使用。
16}
代表一個事件。它可以是按鍵事件、終端機大小調整,或更多...
Definition event.hpp:27
FTXUI 的 ftxui:: 命名空間
Definition animation.hpp:10
int LLVMFuzzerTestOneInput(const char *data, size_t size)