Returns colors as a UTF-8 JSON string.
Disables blinking of the terminal cursor.
Enables blinking of the terminal cursor.
Hides the terminal cursor.
Moves the terminal cursor a given number of rows down.
Moves the terminal cursor a given number of cols to the left.
Moves the terminal cursor a given number of cols to the right.
Moves the terminal cursor to the given position (col, row).
Moves the terminal cursor to the given col on the current row.
Moves the terminal cursor down the given number of lines and moves it to the first col.
Moves the terminal cursor up the given number of lines and moves it to the first col.
Moves the terminal cursor to the given row on the current col.
Moves the terminal cursor a given number of rows up.
Get cursor position (col, row)
Set cursor position (col, row)
Restores the saved terminal cursor position.
Saves the current terminal cursor position.
Shows the terminal cursor.
Sets the style of the cursor.
Sets the style of the cursor to a blinking bar.
Sets the style of the cursor to a blinking block.
Sets the style of the cursor to a blinking underscore.
Sets the style of the cursor to default user shape.
Sets the style of the cursor to a steady bar.
Sets the style of the cursor to a steady block.
Sets the style of the cursor to a steady underscore.
Disables bracketed paste mode.
Disable focus event emission.
Disable mouse event capturing.
Enable focus event emission.
Enable mouse event capturing.
Checks if there is an
Event
available.
Disables extra kinds of keyboard events.
Enables the
kitty keyboard protocol,
which adds extra information to keyboard events and removes ambiguity for modifier keys.
It should be paired with [
crossterm_pop_keyboard_enhancement_flags
] at the end of execution.
Reads a single
Event
as a UTF-8 JSON string.
If error occurs during read, error will be returned as a UTF-8 JSON string.
Flush the stdout stream, ensuring that all intermediately buffered contents reach their destination.
Frees data behind pointer to UTF-8 string allocated by this crate
Check whether error has been set.
Calculate the number of bytes in the last error’s error message including a
trailing null
character. If there are no recent error, then this returns
0
.
Return most recent error message into a UTF-8 string buffer.
Sleeps for n seconds where n is the argument to this function
Sets an attribute.
Sets the Bold
attribute.
Sets the CrossedOut
attribute.
Sets the Dim
attribute.
Sets the DoubleUnderlined
attribute.
Sets the Fraktur
attribute.
Sets the Hidden
attribute.
Sets the Italic
attribute.
Sets the NoBlink
attribute.
Sets the NoBold
attribute.
Sets the NoHidden
attribute.
Sets the NoItalic
attribute.
Sets the NoReverse
attribute.
Sets the NoUnderline
attribute.
Sets the NormalIntensity
attribute.
Sets the NotCrossedOut
attribute.
Sets the RapidBlink
attribute.
Sets the Reset
attribute.
Sets the Reverse
attribute.
Sets the SlowBlink
attribute.
Sets the Undercurled
attribute.
Sets the Underdashed
attribute.
Sets the Underdotted
attribute.
Sets the Underlined
attribute.
Sets the the background color.
Sets the the background color to an ANSI value.
Sets the the background color to Black.
Sets the the background color to Blue.
Sets the the background color to Cyan.
Sets the the background color to DarkBlue.
Sets the the background color to DarkCyan.
Sets the the background color to DarkGreen.
Sets the the background color to DarkGrey.
Sets the the background color to DarkMagenta.
Sets the the background color to DarkRed.
Sets the the background color to DarkYellow.
Sets the the background color to Green.
Sets the the background color to Grey.
Sets the the background color to Magenta.
Sets the the background color to Red.
Sets the the background color to Reset.
Sets the the background color in RGB.
Sets the the background color to White.
Sets the the background color to Yellow.
Sets the the foreground color.
Sets the the foreground color to an ANSI value.
Sets the the foreground color to Black.
Sets the the foreground color to Blue.
Sets the the foreground color to Cyan.
Sets the the foreground color to DarkBlue.
Sets the the foreground color to DarkCyan.
Sets the the foreground color to DarkGreen.
Sets the the foreground color to DarkGrey.
Sets the the foreground color to DarkMagenta.
Sets the the foreground color to DarkRed.
Sets the the foreground color to DarkYellow.
Sets the the foreground color to Green.
Sets the the foreground color to Grey.
Sets the the foreground color to Magenta.
Sets the the foreground color to Red.
Sets the the foreground color to Reset.
Sets the the foreground color in RGB.
Sets the the foreground color to White.
Sets the the foreground color to Yellow.
Print string to stdout
Print char to stdout
Print string to stdout
Resets the colors back to default.
Sets the the underline color.
Sets the the underline color to an ANSI value.
Sets the the underline color to Black.
Sets the the underline color to Blue.
Sets the the underline color to Cyan.
Sets the the underline color to DarkBlue.
Sets the the underline color to DarkCyan.
Sets the the underline color to DarkGreen.
Sets the the underline color to DarkGrey.
Sets the the underline color to DarkMagenta.
Sets the the underline color to DarkRed.
Sets the the underline color to DarkYellow.
Sets the the underline color to Green.
Sets the the underline color to Grey.
Sets the the underline color to Magenta.
Sets the the underline color to Red.
Sets the the underline color to Reset.
Sets the the underline color in RGB.
Sets the the underline color to White.
Sets the the underline color to Yellow.
Instructs the terminal emulator to begin a synchronized frame.
Clear screen command.
Disables line wrapping.
Disables raw mode.
Enables line wrapping.
Enables raw mode.
Instructs the terminal to end a synchronized frame.
Enters alternate screen.
Tells whether the raw mode is enabled.
Leaves alternate screen.
Instructs the terminal to send a bell.
Scroll down command.
Scroll up command.
Get terminal size
Sets the terminal buffer size (cols, rows)
.
Sets terminal title.
Use std::io::stderr()
for all commands
Use std::io::stdout()
for all commands
Peek at the most recent error and get its error message as a Rust String
.
Take the most recent error, clearing LAST_ERROR
in the process.