mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-11-15 11:38:56 +08:00
Add modules support (#1015)
Add experimental C++20 module suppport. Co-authored-by: ArthurSonzogni <sonzogniarthur@gmail.com>
This commit is contained in:
26
src/ftxui/screen/terminal.cppm
Normal file
26
src/ftxui/screen/terminal.cppm
Normal file
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* @file terminal.cppm
|
||||
* @brief Module file for the Terminal namespace of the Screen module
|
||||
*/
|
||||
|
||||
module;
|
||||
|
||||
#include <ftxui/screen/terminal.hpp>
|
||||
|
||||
export module ftxui.screen.terminal;
|
||||
|
||||
/**
|
||||
* @namespace ftxui
|
||||
* @brief The FTXUI ftxui:: namespace
|
||||
*/
|
||||
export namespace ftxui {
|
||||
using ftxui::Dimensions;
|
||||
|
||||
namespace Terminal {
|
||||
using ftxui::Terminal::Size;
|
||||
using ftxui::Terminal::SetFallbackSize;
|
||||
using ftxui::Terminal::Color;
|
||||
using ftxui::Terminal::ColorSupport;
|
||||
using ftxui::Terminal::SetColorSupport;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user