[−][src]Crate crossterm
Modules
error | Module containing error handling logic. |
Structs
AlternateScreen | With this type you will be able to switch to alternate screen and back to main screen. Check also the Screen type for swishing to alternate mode. |
AsyncReader | This type allows you to read the input asynchronously which means that input events are gathered on the background and will be queued for you to read. |
Crossterm | This type offers a easy way to use functionalities like |
ObjectStyle | Struct that contains the style properties that can be applied to an displayable object. |
Screen | This type represents a screen which could be in normal, raw and alternate modes. |
StyledObject | Struct that contains both the style and the content wits can be styled. |
SyncReader | This type allows you to read input synchronously, which means that reading call will be blocking ones. |
Terminal | Allows you to preform actions on the terminal. |
TerminalColor | Allows you to style the terminal. |
TerminalCursor | Allows you to preform actions with the terminal cursor. |
TerminalInput | Allows you to preform actions with the < option >. |
TerminalOutput | Struct that is a handle to the current terminal screen. |
Enums
Attribute | These are all the attributes which could be apply to font. There are few things to note |
ClearType | Enum that specifies a way of clearing. |
Color | Colors that are available for coloring the terminal font. |
Colored | Could be used to color the foreground or background color. |
InputEvent | Enum to specify which input event has occurred. |
KeyEvent | Enum with different key or key combinations. |
MouseButton | Enum to define mouse buttons. |
MouseEvent | Enum to specify which mouse event has occurred. |
Traits
Colorize | Provides a set of methods to color any type implementing |
Styler | Provides a set of methods to style any type implementing |
Functions
color | Get a |
cursor | Get a |
input | Get a |
style | This could be used to style a type who is implementing |
terminal | Get a |