Struct lrs::tty::Tty

Syntax

struct Tty {
    /* private fields */
}

Static methods

NameDescription
new_pty

Creates a new pseudo terminal.

Methods

ReceiverNameDescription
&selfacquire

Acquire this terminal as the controlling terminal.

&selfattributes

Retrieves the attributes of the terminal.

&selfdevice

Returns the device associated with this terminal.

&selfdisable_packet_mode

Disables packet mode for this terminal.

&selfdisable_slave

Disallows opening the slave.

&selfdiscard_input

Discards all unread input of this terminal.

&selfdiscard_output

Discards all unwritten output of this terminal.

&selfenable_packet_mode

Enabled packet mode for this terminal.

&selfenable_slave

Allows opening the slave.

&selfexclusive

Returns whether exclusive mode is enabled.

&selfforeground_group

Returns the foreground process group of this terminal.

&selfgive_up

Gives up this controlling terminal.

&selfhang_up

Simulates a hang-up of this terminal.

&selfline_discipline

Returns the line discipline of this terminal.

&selfpacket_mode

Returns whether packet mode is enabled.

&selfpending_input

Returns the number of pending input bytes.

&selfpending_output

Returns the number of pending output bytes.

&selfpty_id

Returns the id of this pseudo terminal.

&selfpush_byte

Adds a single byte to the input queue of the terminal.

&selfredirect_console

Redirects /dev/console output to this terminal.

&selfsession

Returns the session of this terminal.

&selfset_attributes

Sets the attributes of the terminal.

&selfset_exclusive

Enables or disables exclusive mode for this terminal.

&selfset_foreground_group

Sets the foreground process group of this terminal.

&selfset_line_discipline

Sets the line discipline of this terminal.

&selfset_window_size

Sets the size of the terminal window.

&selfsignal

Sends a signal to the process group at the other end of a pseudo terminal.

&selfslave_enabled

Returns whether the slave can be opened.

&selfstart_input

Restarts input.

&selfstart_output

Restarts output.

&selfsuspend_input

Suspends input.

&selfsuspend_output

Suspends output.

&selfwindow_size

Returns the size of the terminal window.

Trait implementations

NameDescription
FDContainer

Objects that are file descriptor wrappers.