FTXUI  5.0.0
C++ functional terminal UI.
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 {
8struct Dimensions {
9 int dimx;
10 int dimy;
11};
12
13namespace Terminal {
15void SetFallbackSize(const Dimensions& fallbackSize);
16
17enum Color {
22};
25
26} // namespace Terminal
27
28} // namespace ftxui
29
30#endif // FTXUI_SCREEN_TERMINAL_HPP
A class representing terminal colors.
Definition: color.hpp:21
void SetColorSupport(Color color)
Override terminal color support in case auto-detection fails.
Definition: terminal.cpp:140
void SetFallbackSize(const Dimensions &fallbackSize)
Override terminal size in case auto-detection fails.
Definition: terminal.cpp:124
Dimensions Size()
Get the terminal size.
Definition: terminal.cpp:94
Color ColorSupport()
Get the color support of the terminal.
Definition: terminal.cpp:130
Decorator color(Color)
Decorate using a foreground color.
Definition: color.cpp:110