[][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 cursor, terminal, color, input, styling.

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.

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.

KeyEvent

Enum with different key or key combinations.

Traits

Colorize

Provides a set of methods to color any type implementing Display with attributes.

Styler

Provides a set of methods to style any type implementing Display with attributes.

Functions

color

Get a TerminalColor implementation whereon color related actions can be performed.

cursor

Get a TerminalCursor instance whereon cursor related actions can be performed.

input

Get a TerminalInput instance whereon input related actions can be performed.

style

This could be used to style a type who is implementing Display with colors and attributes.

terminal

Get a Terminal instance whereon terminal related actions could performed.