Skip to content
You are viewing documentation for v7.0.3. Switch to latest (main).

ftxui::Terminal::Quirks ​

cpp
#include <ftxui/screen/terminal.hpp>

Quirks is a structure that represents various terminal-specific behaviors that may require fallbacks.

Summary ​

SymbolDescription
Quirks
~Quirks
operator=
BlockCharactersWhether the terminal font supports the 8 Unicode block characters.
SetBlockCharacters
CursorHidingWhether the terminal correctly handles hiding the cursor.
SetCursorHiding
ComponentAsciiWhether the terminal should use ASCII characters for components.
SetComponentAscii
ColorSupportThe level of color support of the terminal.
SetColorSupport

Public Member Functions ​

Quirks ​

cpp
Quirks();

~Quirks ​

cpp
~Quirks();

Quirks ​

cpp
Quirks(const Quirks &);

operator= ​

cpp
Quirks & operator=(const Quirks &);

Quirks ​

cpp
Quirks(Quirks &&);

operator= ​

cpp
Quirks & operator=(Quirks &&);

BlockCharacters ​

cpp
bool BlockCharacters() const;

Whether the terminal font supports the 8 Unicode block characters.

SetBlockCharacters ​

cpp
void SetBlockCharacters(bool v);

CursorHiding ​

cpp
bool CursorHiding() const;

Whether the terminal correctly handles hiding the cursor.

SetCursorHiding ​

cpp
void SetCursorHiding(bool v);

ComponentAscii ​

cpp
bool ComponentAscii() const;

Whether the terminal should use ASCII characters for components.

SetComponentAscii ​

cpp
void SetComponentAscii(bool v);

ColorSupport ​

cpp
Color ColorSupport() const;

The level of color support of the terminal.

Examples: component/terminal_info, dom/color_gallery

SetColorSupport ​

Examples: component/terminal_info