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