FTXUI 6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
terminal.hpp
Go to the documentation of this file.
1// Copyright 2020 Arthur Sonzogni. All rights reserved.
2// Use of this source code is governed by the MIT license that can be found in
3// the LICENSE file.
4#ifndef FTXUI_SCREEN_TERMINAL_HPP
5#define FTXUI_SCREEN_TERMINAL_HPP
6
7namespace ftxui {
8
9/// @brief Dimensions is a structure that represents the size of the terminal
10/// @ingroup screen
11struct Dimensions {
12 int dimx;
13 int dimy;
14};
15
16namespace Terminal {
18void SetFallbackSize(const Dimensions& fallbackSize);
19
20/// @brief Color is an enumeration that represents the color support of the
21/// terminal.
22/// @ingroup screen
30void SetColorSupport(Color color);
31
32} // namespace Terminal
33
34} // namespace ftxui
35
36#endif // FTXUI_SCREEN_TERMINAL_HPP
void SetColorSupport(Color color)
Override terminal color support in case auto-detection fails.
Definition terminal.cpp:140
Color is a class that represents a color in the terminal user interface.
Definition color.hpp:22
Color
Color is an enumeration that represents the color support of the terminal.
Definition terminal.hpp:23
Dimensions Size()
Get the terminal size.
Definition terminal.cpp:94
Color ColorSupport()
Get the color support of the terminal.
Definition terminal.cpp:130
Dimensions is a structure that represents the size of the terminal.
Definition terminal.hpp:11
void SetFallbackSize(const Dimensions &fallbackSize)
Override terminal size in case auto-detection fails.
Definition terminal.cpp:124
The FTXUI ftxui:: namespace.
Definition animation.hpp:10