FTXUI/include/ftxui/screen/terminal.hpp

31 lines
598 B
C++
Raw Permalink Normal View History

2023-08-19 19:56:36 +08:00
// 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.
2022-03-31 08:17:43 +08:00
#ifndef FTXUI_SCREEN_TERMINAL_HPP
#define FTXUI_SCREEN_TERMINAL_HPP
2018-09-18 14:48:40 +08:00
namespace ftxui {
struct Dimensions {
int dimx;
int dimy;
};
2018-09-18 14:48:40 +08:00
namespace Terminal {
Dimensions Size();
void SetFallbackSize(const Dimensions& fallbackSize);
2020-10-17 04:31:24 +08:00
enum Color {
Palette1,
Palette16,
Palette256,
TrueColor,
2018-09-18 14:48:40 +08:00
};
Color ColorSupport();
void SetColorSupport(Color color);
} // namespace Terminal
2018-09-18 14:48:40 +08:00
} // namespace ftxui
2022-03-31 08:17:43 +08:00
#endif // FTXUI_SCREEN_TERMINAL_HPP