pub struct Terminal { /* private fields */ }
Expand description

unsegen Widget that models a pseudoterminal and displays its contents to the window when drawn.

Use ScrollBehavior to scroll in the (potentially infinite buffer) and WriteBehavior to pass specific keystrokes to the terminal.

Implementations

Create a Terminal which will use the provided SlaveInputSink to notify the user of new input from the pty.

This method will create a posix pty. The associated file (path) can be obtained using get_slave_name.

Add raw byte input to the terminal window. Call this for bytes that you received (indirectly) from SlaveInputSink::receive_bytes_from_pty.

Get the name of the slave pseudoterminal that is associated with the Terminal.

(c.f. posix ptsname)

Trait Implementations

Default container behavior:

Scroll using PageUp/PageDown, jump to beginning/end using Home/End and pass all other input to the slave terminal.

Receive, process and possibly consume the input.

Prepare for drawing to a window.

Process the provided char and report if it was processed successfully.

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

Performs the conversion.

Performs the conversion.

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.