mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-27 05:38:29 +08:00
04b36df567
Add code coverage for colors and decorators.
32 lines
599 B
C++
32 lines
599 B
C++
#ifndef FTXUI_SCREEN_TERMINAL_HPP
|
|
#define FTXUI_SCREEN_TERMINAL_HPP
|
|
|
|
namespace ftxui {
|
|
struct Dimensions {
|
|
int dimx;
|
|
int dimy;
|
|
};
|
|
|
|
namespace Terminal {
|
|
Dimensions Size();
|
|
void SetFallbackSize(const Dimensions& fallbackSize);
|
|
|
|
enum Color {
|
|
Palette1,
|
|
Palette16,
|
|
Palette256,
|
|
TrueColor,
|
|
};
|
|
Color ColorSupport();
|
|
void SetColorSupport(Color color);
|
|
|
|
} // namespace Terminal
|
|
|
|
} // namespace ftxui
|
|
|
|
#endif // FTXUI_SCREEN_TERMINAL_HPP
|
|
|
|
// 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.
|