mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-23 11:17:06 +08:00
dc8c090753
FTXUI supported only the 16 colors palette. This patch adds support for the 256 palette and the TrueColor(8×8×8) mode. This was made by kerdelos@ and fixes issue: https://github.com/ArthurSonzogni/FTXUI/issues/45 Co-authored-by: Damien D <kerdelos@gmail.com> Co-authored-by: Arthur Sonzogni <sonzogniarthur@gmail.com>
25 lines
476 B
C++
25 lines
476 B
C++
#ifndef FTXUI_CORE_TERMINAL_HPP
|
|
#define FTXUI_CORE_TERMINAL_HPP
|
|
|
|
namespace ftxui {
|
|
|
|
class Terminal {
|
|
public:
|
|
struct Dimensions {
|
|
int dimx;
|
|
int dimy;
|
|
};
|
|
|
|
static bool CanSupportTrueColors();
|
|
|
|
static Dimensions Size();
|
|
};
|
|
|
|
} // namespace ftxui
|
|
|
|
#endif /* end of include guard: FTXUI_CORE_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.
|