Module crossterm::style

source ·
Expand description

A module that contains all the actions related to the styling of the terminal. Like applying attributes to font and changing the foreground and background.

Modules

A module that contains all the actions related to the styling of the terminal. Like applying attributes to font and changing the foreground and background.
This module contains the object style that can be applied to an styled object.
This module contains the logic to style an object that contains some ‘content’ which can be styled.

Structs

This is a wrapper for a styled object on ‘alternate screen’ so that the styled object could be printed on the ‘alternate screen’ with the standard write functions in rust.
Struct that contains the style properties that can be applied to an displayable object.
Struct that contains both the style and the content wits can be styled.
Struct that stores a platform-specific implementation for color related actions.

Enums

Attributes that could be applied on some text.
Colors that are available for coloring the terminal font.
Color types that can be used to determine if the Color enum is a Fore- or Background Color.

Functions

Get a TerminalColor implementation whereon color related actions can be performed.
Get a TerminalColor instance whereon color related actions can be performed. Pass the reference to any Screen you want this type to perform actions on.
This could be used to style an Displayable type with colors and attributes.