[−][src]Crate crossterm_style
A module that contains all the actions related to the styling of the terminal. Like applying attributes to text and changing the foreground and background.
Re-exports
pub use self::objectstyle::ObjectStyle; |
pub use self::styledobject::StyledObject; |
Modules
objectstyle | This module contains the |
styledobject | This module contains the logic to style an object that contains some 'content' which can be styled. |
Macros
execute | Execute one or more command(s) |
queue | Queue one or more command(s) for execution in the near future. |
Structs
PrintStyledFont | When executed, this command will print the styled font to the terminal. |
SetAttr | When executed, this command will set the given attribute to the terminal. |
SetBg | When executed, this command will set the background color of the terminal to the given color. |
SetFg | When executed, this command will set the foreground color of the terminal to the given color. |
TerminalColor | Allows you to style the terminal. |
Enums
Attribute | Enum with the different attributes to style your test. |
Color | Enum with the different colors to color your test and terminal. |
Colored | Could be used to color the foreground or background color. |
Traits
Colorize | Provides a set of methods to color any type implementing |
Command | A command is an action that can be performed on the terminal. |
ExecutableCommand | A trait that defines behaviour for a command that will be executed immediately. |
QueueableCommand | A trait that defines behaviour for a command that can be used to be executed at a later time point. This can be used in order to get more performance. |
Styler | Provides a set of methods to style any type implementing |
Functions
color | Get a |
style | This could be used to style a type that implements |
Type Definitions
Result | The |