FTXUI  5.0.0
C++ functional terminal UI.
ftxui::Terminal Namespace Reference

Functions

Dimensions Size ()
 Get the terminal size. More...
 
void SetFallbackSize (const Dimensions &fallbackSize)
 Override terminal size in case auto-detection fails. More...
 
Color ColorSupport ()
 Get the color support of the terminal. More...
 
void SetColorSupport (Color color)
 Override terminal color support in case auto-detection fails. More...
 

Enumerations

enum  Color { Palette1 , Palette16 , Palette256 , TrueColor }
 

Enumeration Type Documentation

◆ Color

enum Color
Enumerator
Palette1 
Palette16 
Palette256 
TrueColor 
Examples
examples/component/homescreen.cpp, examples/dom/color_gallery.cpp, and examples/dom/color_info_palette256.cpp.

Definition at line 17 of file terminal.hpp.

Function Documentation

◆ Size()

Dimensions Size ( )

Get the terminal size.

Returns
The terminal size.
Examples
examples/component/homescreen.cpp.

Definition at line 94 of file terminal.cpp.

◆ SetFallbackSize()

void SetFallbackSize ( const Dimensions fallbackSize)

Override terminal size in case auto-detection fails.

Parameters
fallbackSizeTerminal dimensions to fallback to

Definition at line 124 of file terminal.cpp.

◆ ColorSupport()

Color ColorSupport ( )

Get the color support of the terminal.

Examples
examples/dom/color_gallery.cpp.

Definition at line 130 of file terminal.cpp.

◆ SetColorSupport()

void SetColorSupport ( Color  color)

Override terminal color support in case auto-detection fails.

Definition at line 140 of file terminal.cpp.