pub struct ScreenWriteGuard<'a>(_);
Expand description

Holds an exclusive lock for write operations on a Screen

See Screen documentation for details on locking.

Implementations

Returns the current size of the terminal screen.

Sets the cursor position.

Moves the cursor to the given column on the next line.

Set the current cursor mode.

Set the current cursor mode.

This setting is a visible hint to the user. It produces no change in behavior.

Notes

On Unix systems, this setting may have no effect.

Adds a set of Style flags to the current style setting.

Removes a set of Style flags to the current style setting. Adds a set of Style flags to the current style setting.

Sets the current style setting to the given set of flags.

Sets or removes foreground text color.

Sets or removes background text color.

Removes color and style attributes.

Sets all attributes for the screen.

Adds bold to the current style setting.

Adds bold to the current style setting.

This is equivalent to self.add_style(Style::BOLD).

Adds italic to the current style setting.

This is equivalent to self.add_style(Style::ITALIC).

Adds underline to the current style setting.

This is equivalent to self.add_style(Style::UNDERLINE).

Adds reverse to the current style setting.

This is equivalent to self.add_style(Style::REVERSE).

Renders the internal buffer to the terminal screen.

This is called automatically when the ScreenWriteGuard is dropped.

Writes text at the given position within the screen buffer.

Any non-printable characters, such as escape sequences, will be ignored.

Writes text with the given attributes at the current cursor position.

Any non-printable characters, such as escape sequences, will be ignored.

Writes text with the given attributes at the given position within the screen buffer.

Any non-printable characters, such as escape sequences, will be ignored.

Writes a single character at the cursor position using the current style and color settings.

If the character is a non-printable character, it will be ignored.

Writes a string at the cursor position using the current style and color settings.

Any non-printable characters, such as escape sequences, will be ignored.

Writes formatted text at the cursor position using the current style and color settings.

This method enables ScreenWriteGuard to be used as the receiver to the write! and writeln! macros.

Any non-printable characters, such as escape sequences, will be ignored.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.