2018-09-18 14:48:40 +08:00
|
|
|
#ifndef FTXUI_CORE_TERMINAL_HPP
|
|
|
|
#define FTXUI_CORE_TERMINAL_HPP
|
|
|
|
|
|
|
|
namespace ftxui {
|
|
|
|
|
|
|
|
class Terminal {
|
|
|
|
public:
|
|
|
|
struct Dimensions {
|
|
|
|
int dimx;
|
|
|
|
int dimy;
|
|
|
|
};
|
|
|
|
static Dimensions Size();
|
2020-10-17 04:31:24 +08:00
|
|
|
|
|
|
|
enum Color {
|
|
|
|
Palette1,
|
|
|
|
Palette16,
|
|
|
|
Palette256,
|
|
|
|
TrueColor,
|
|
|
|
};
|
|
|
|
static Color ColorSupport();
|
2018-09-18 14:48:40 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace ftxui
|
|
|
|
|
|
|
|
#endif /* end of include guard: FTXUI_CORE_TERMINAL_HPP */
|
2020-08-16 06:24:18 +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.
|